/*
Theme Name: REO Society
Theme URI: https://ecosociety.ru
Author: Rossiyskoe ekologicheskoe obshchestvo
Author URI: https://ecosociety.ru
Description: WordPress theme for ecosociety.ru based on REO CURSOR green design (sticky header, maps, WP_Query news).
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reo-society
Tags: custom-logo, custom-menu, featured-images, full-width-template, blog, news
*/

/* REO — точная копия стиля со скриншотов giaf.ru, full-width */
:root {
  --bg: #eef6f0;
  --white: #ffffff;
  --black: #000000;
  --text: #111111;
  --muted: #555555;
  --blue: #2f9e62;
  --blue-hover: #268a53;
  --gray-pill: #e4efe7;
  --shadow: 0 12px 32px rgba(20, 60, 40, 0.08);
  --shadow-sm: 0 6px 18px rgba(20, 60, 40, 0.06);
  --radius: 40px;
  --radius-md: 28px;
  --pill: 100px;
  --font: "Montserrat", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 3.2vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  /* clip keeps sticky headers working; hidden on body breaks position:sticky */
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* Full-width containers */
.fw {
  width: 100%;
}

.inner {
  width: 100%;
  padding-inline: var(--pad);
}

.ph {
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.ph--blue {
  background: linear-gradient(145deg, #4caf7a, #1f8a52 55%, #0f5c38);
}
.ph--cyan {
  background: linear-gradient(145deg, #6fcf8e, #2f9e62 50%, #1f8a52);
}
.ph--navy {
  background: linear-gradient(160deg, #123a28, #1f6b48 70%, #2f9e62);
}
.ph--teal {
  background: linear-gradient(145deg, #3ecf9a, #1faa6c 50%, #0f7a55);
}
.ph--violet {
  background: linear-gradient(145deg, #5cbc7e, #2f7a52 55%, #14402c);
}
.ph--green {
  background: linear-gradient(145deg, #3ecf8e, #1faa6c 50%, #0f7a55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  box-shadow: var(--shadow);
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 158, 98, 0.35);
}

.btn--blue:hover {
  background: var(--blue-hover);
}

.btn--lg {
  min-height: 56px;
  padding: 14px 36px;
  font-size: 16px;
}

.link-blue {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.link-blue:hover {
  opacity: 0.75;
}

/* ===== screen-1: HERO full-width ===== */
.site-sticky {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  padding: 10px var(--pad) 8px;
  background: var(--bg);
}

.site-sticky__bar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px clamp(6px, 0.9vw, 12px);
  width: 100%;
  min-height: 56px;
  padding: 5px 8px 5px 6px;
  background: #ffffff;
  border-radius: var(--pill);
  box-shadow: 0 10px 28px rgba(20, 60, 40, 0.12);
  border: 1px solid rgba(20, 60, 40, 0.06);
}

.hero-wrap {
  width: 100%;
  padding: 0 var(--pad) 8px;
}

.hero {
  position: relative;
  width: 100%;
  border-radius: clamp(28px, 3vw, 48px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 36, 22, 0.72) 0%, rgba(15, 55, 35, 0.58) 45%, rgba(20, 70, 42, 0.5) 100%),
    url("assets/images/hero.jpeg") center / cover no-repeat;
  color: var(--white);
  padding: clamp(108px, 14vh, 168px) clamp(16px, 2vw, 28px) 56px;
  min-height: min(68vh, 580px);
  box-shadow: 0 20px 50px rgba(20, 60, 40, 0.22);
}

.hero__bg-shade {
  pointer-events: none;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 2px clamp(8px, 1.1vw, 16px);
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-height: 0;
}

.hero__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 4px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
}

.hero__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), #1f7a4c);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.hero__logo span {
  max-width: 120px;
}

.hero__nav > li > a {
  color: #222;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.hero__nav > li > a:hover,
.hero__nav > li > a[aria-current="page"] {
  color: var(--blue);
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero__nav-social {
  display: none;
}

.hero__social a,
.hero__nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero__social a:hover,
.hero__nav-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.hero__search-form {
  display: flex;
  align-items: center;
  flex: 0 1 180px;
  min-width: 120px;
  max-width: 220px;
  height: 40px;
  min-height: 40px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid rgba(47, 158, 98, 0.16);
  overflow: hidden;
}

.hero__search-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px 0 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.hero__search-input::placeholder {
  color: #7a8f82;
}

.hero__search-input:focus {
  outline: none;
}

.hero__search-submit {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--blue);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero__search-submit:hover {
  background: var(--blue);
  color: #fff;
}

.hero__search-submit svg {
  width: 16px;
  height: 16px;
}

.hero__cta-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 40px !important;
  height: 40px;
  min-width: 0;
  padding: 0 16px !important;
  font-size: 13px;
  border-radius: 12px !important;
  white-space: nowrap;
  box-shadow: none;
}

.hero__nav-join {
  display: none;
}

.hero__search,
.hero__header,
.hero__header-top,
.hero__toolbar {
  display: none;
}

.hero__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  place-items: center;
  flex-shrink: 0;
}

.hero__burger span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px 0;
  background: #222;
  border-radius: 2px;
}

.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;
}

.modal__dialog--search {
  width: min(100%, 520px);
}

.site-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 4px;
}

.site-search__field {
  display: block;
}

.site-search__field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid rgba(47, 158, 98, 0.28);
  border-radius: 14px;
  background: #eef6f0;
  font: inherit;
  font-weight: 500;
  color: var(--text);
}

.site-search__field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 158, 98, 0.2);
}

.site-search__btn {
  min-height: 48px;
  padding-inline: 20px;
}

.site-search__meta {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.site-search__clear {
  margin-top: 12px;
  min-height: 42px;
}

mark.search-hit {
  background: rgba(47, 158, 98, 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
  box-shadow: 0 0 0 1px rgba(47, 158, 98, 0.25);
}

mark.search-hit.is-active {
  background: rgba(47, 158, 98, 0.55);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.hero__body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: 0 clamp(8px, 1.5vw, 20px);
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 560px;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 520px;
  opacity: 0.96;
}

.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.35;
}

.hero__list .ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.hero__list .ico svg {
  width: 12px;
  height: 12px;
}

/* ===== screen-2: STATS ===== */
.stats {
  width: 100%;
  padding: 36px 0 24px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.5vw, 22px);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(32px, 3.5vw, 48px) clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(200px, 22vw, 280px);
}

.stat-card__value {
  margin: 0 0 18px;
  font-size: clamp(64px, 8vw, 104px);
  font-weight: 800;
  color: var(--blue);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.stat-card__value .js-count {
  display: inline-block;
}

.stat-card__label {
  margin: 0;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.35;
  max-width: 100%;
}

/* ===== Quote: Ismailov ===== */
.quote {
  width: 100%;
  padding: 4px 0 28px;
}

.quote-card {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(47, 158, 98, 0.16), transparent 36%),
    linear-gradient(135deg, #f7fcf8 0%, #e8f5ec 48%, #d9efe0 100%);
  border: 1px solid rgba(47, 158, 98, 0.14);
  box-shadow: var(--shadow);
  min-height: 0;
  gap: 0;
}

.quote-card__body {
  flex: 1.35 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(20px, 2.5vw, 30px) clamp(20px, 2.8vw, 36px);
  min-width: 0;
}

.quote-card__text {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  line-height: 1.38;
  color: var(--text);
  quotes: none;
}

.quote-card__author {
  display: grid;
  gap: 3px;
}

.quote-card__author strong {
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 800;
  color: var(--blue);
}

.quote-card__author span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.quote-card__photo {
  flex: 0 0 auto;
  margin: 0;
  position: relative;
  min-width: 0;
  padding: clamp(14px, 1.8vw, 24px) clamp(16px, 2.4vw, 30px);
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-card__photo img {
  position: relative;
  display: block;
  width: clamp(100px, 12vw, 136px);
  aspect-ratio: 1;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #d9f0e0;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.55),
    0 10px 22px rgba(20, 60, 40, 0.14);
}

/* ===== screen-3: ABOUT ===== */
.about {
  width: 100%;
  padding: 56px 0 40px;
  background: var(--white);
}

.about__feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.about-media {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #d5ebd9;
  min-height: 180px;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-media--mission,
.about__feature .about-media {
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border-radius: 32px;
  width: 100%;
  height: 100%;
}

.about__feature .ph {
  aspect-ratio: 16 / 10;
  border-radius: 32px;
  min-height: 260px;
}

.about__feature h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.about__feature p {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 440px;
}

.mission-goal h2 {
  margin: 0 0 22px;
}

.mission-goal__item {
  margin-bottom: 20px;
}

.mission-goal__item h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.mission-goal__item p {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  max-width: 460px;
}

.mission-goal .link-blue {
  display: inline-block;
  margin-top: 8px;
}

.about-goals {
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.about-goals__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
}

.about-goals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-goal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, #f4faf6 0%, #eef6f0 100%);
  border: 1px solid rgba(47, 158, 98, 0.12);
  box-shadow: var(--shadow-sm);
}

.about-goal__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.about-goal__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.about-goal p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}

.about-role {
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 18%, rgba(47, 158, 98, 0.12), transparent 28%),
    linear-gradient(165deg, #f7fcf8 0%, #eef6f0 55%, #e6f3ea 100%);
  border: 1px solid rgba(47, 158, 98, 0.12);
}

.about-role__head {
  margin-bottom: 28px;
  max-width: 820px;
}

.about-role__head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.about-role__head p {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
  max-width: none;
}

.about-role__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
}

.about-role__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  width: 100%;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 158, 98, 0.14);
  box-shadow: var(--shadow-sm);
}

.about-role__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.about-role__icon svg {
  display: block;
  width: 56px;
  height: 56px;
}

.about-role__item h3 {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}

.about-role__item p {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.5;
  color: var(--text);
  max-width: none;
}

.about-role__item strong {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 980px) {
  .about-goals__list,
  .about-role__list {
    grid-template-columns: 1fr;
  }

  .about-role {
    padding: 22px 18px;
  }
}

.about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 48px);
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.about-card .ph {
  aspect-ratio: 1;
  border-radius: 28px;
  min-height: 180px;
}

.about-card .about-media {
  aspect-ratio: 1;
  border-radius: 28px;
  min-height: 180px;
  width: 100%;
  height: 100%;
}

.about-card h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
}

.about-card p {
  margin: 0 0 14px;
  font-size: 15px;
}

/* ===== screen-4: PROJECTS ===== */
.projects {
  width: 100%;
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
}

.section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
}

.projects__grid--mirror {
  grid-template-columns: 1fr 1.45fr;
  margin-top: 18px;
}

.project-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 300px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card--lg {
  min-height: 580px;
}

.project-card .ph,
.project-card__media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card__media--photo {
  background-position: center 22%;
}

.project-card__media--ecomol {
  background-position: center center;
  background-size: cover;
}

.project-card__media--rosatom {
  background-position: center 38%;
}

.project-card__media--rodina {
  background-position: center 26%;
}

.project-card__media--ecobreakfast {
  background-position: center 42%;
}

.project-card__media--stub {
  background: linear-gradient(145deg, #3cb371 0%, #1f8a52 55%, #0f5c38 100%);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.project-card__content {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0, 40, 25, 0.72));
  width: 100%;
}

.project-card__content h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.project-card--lg .project-card__content h3 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.project-card__content p {
  margin: 0 0 12px;
  font-size: 14px;
  opacity: 0.95;
  max-width: 480px;
}

.project-card__content .link-blue {
  color: #fff;
}

.project-stack {
  display: grid;
  gap: 18px;
}

/* ===== screen-5: PARTNERS ===== */
.partners {
  width: 100%;
  padding: 56px 0 48px;
  overflow: hidden;
}

.partners .inner h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
}

.partners .lead {
  margin: 0 0 36px;
  font-size: 16px;
}

.marquee {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-left 38s linear infinite;
}

.marquee--right .marquee__track {
  animation-name: marquee-right;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.partner-logo {
  flex: 0 0 auto;
  width: clamp(150px, 14vw, 200px);
  height: 88px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #7a8b99;
  padding: 12px;
  text-align: center;
}

/* ===== screen-6: INTERVIEWS ===== */
.interviews {
  width: 100%;
  padding: 56px 0;
  background: var(--white);
}

.interviews__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.interviews__head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
}

.interviews__head h2 em {
  font-style: normal;
  color: var(--blue);
}

.interviews__head p {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  color: var(--muted);
}

.interviews__grid { display: none; }

.interview-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
  border: 1px solid rgba(20, 60, 40, 0.04);
}

.interview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.interview-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #d5ebd9;
  overflow: hidden;
}

.interview-card__thumb img,
.interview-card__thumb .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.interview-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(transparent 40%, rgba(0, 35, 20, 0.35));
  pointer-events: none;
}

.interview-card__play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.interview-card__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.interview-card__body {
  padding: 18px 20px 22px;
}

.interview-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.interview-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.interviews-status {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  background: var(--bg);
  border-radius: 28px;
  color: var(--muted);
}

/* ===== screen-7: NEWS — крупная слева + мелкие справа ===== */
.news {
  width: 100%;
  padding: 64px 0;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card__thumb {
  aspect-ratio: 16 / 10;
  background: #d5ebd9;
  overflow: hidden;
}

.news-card__thumb img,
.news-card__thumb .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.news-card__body {
  padding: 20px 24px 24px;
}

.news-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.news-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-status {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  background: var(--white);
  border-radius: 28px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* ===== screen-8: JOIN ===== */
.join {
  width: 100%;
  padding: 20px 0 48px;
}

.join__banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
  min-height: 280px;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 56px);
  border-radius: 36px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 50%, rgba(90, 200, 130, 0.4), transparent 28%),
    radial-gradient(circle at 88% 40%, rgba(47, 158, 98, 0.35), transparent 22%),
    linear-gradient(100deg, #34a86a 0%, #268a53 28%, #145a38 62%, #04140c 100%);
  box-shadow: 0 18px 40px rgba(31, 106, 72, 0.22);
  width: 100%;
}

.join__banner--plain {
  background: linear-gradient(100deg, #34a86a 0%, #268a53 32%, #145a38 68%, #04140c 100%);
}

.join__banner--plain::before {
  content: none;
}

.join__banner::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(280px, 28vw);
  height: min(280px, 28vw);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.04),
    0 0 0 56px rgba(255, 255, 255, 0.03),
    0 0 0 84px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.join__text {
  position: relative;
  z-index: 1;
}

.join__text h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 560px;
}

.join__badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  margin-bottom: 0;
  border-radius: var(--pill);
  background: var(--white);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.join__cta {
  position: relative;
  z-index: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-right: clamp(4px, 2vw, 24px);
}

.join__btn {
  min-height: 64px;
  padding: 0 42px;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  border-radius: var(--pill);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.join__visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 200px);
  aspect-ratio: 1;
  border-radius: 36px;
}

.join__visual .ph {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  font-size: 28px;
  font-weight: 800;
}

/* ===== screen-9: LEGAL + FOOTER ===== */
.legal {
  width: 100%;
  padding: 12px 0 28px;
}

.legal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 16px 28px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--pill);
  box-shadow: 0 12px 30px rgba(47, 158, 98, 0.28);
}

.legal__bar span {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
}

.legal__toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.legal__bar[aria-expanded="true"] .legal__toggle {
  transform: rotate(45deg);
}

.legal__panel {
  display: none;
  margin-top: 16px;
  padding: 28px 32px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--muted);
}

.legal__panel.is-open {
  display: block;
}

.footer {
  width: 100%;
  background: var(--white);
  border-radius: 48px 48px 0 0;
  padding: 40px 0 32px;
  box-shadow: 0 -8px 30px rgba(20, 60, 40, 0.04);
}

.footer__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
  flex-shrink: 0;
}

.footer__brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), #1f7a4c);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.footer__nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 12px 24px;
  background: var(--gray-pill);
  border-radius: var(--pill);
  min-height: 52px;
  align-items: center;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--blue);
}

.footer__top-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-pill);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer__top-btn:hover {
  background: #dce5ee;
  transform: translateY(-2px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  font-size: 13px;
  color: #6b7a86;
}

.footer__grid p {
  margin: 0 0 6px;
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__links a:hover {
  color: var(--blue);
}

.footer__contacts {
  text-align: right;
}

.footer__contacts p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.footer__contacts p span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}

.footer__contacts a {
  display: inline;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--blue);
  word-break: break-word;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .news__grid,
  .interviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: 0;
    padding-top: clamp(72px, 10vh, 112px);
    padding-bottom: 40px;
  }

  .site-sticky {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .site-sticky__bar {
    min-height: 52px;
    gap: 8px;
  }

  .hero__nav {
    display: none;
  }

  .hero__social {
    display: none;
  }

  .hero__search-form {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .hero__cta-top {
    display: none;
  }

  .hero__burger {
    display: grid;
  }

  .hero__nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 14px;
    gap: 4px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(20, 60, 40, 0.18);
    border: 1px solid rgba(20, 60, 40, 0.08);
    min-height: 0;
  }

  .hero__nav.is-open > li > a {
    display: block;
    padding: 12px 10px;
    font-size: 15px;
  }

  .hero__nav.is-open .hero__nav-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(47, 158, 98, 0.12);
  }

  .hero__nav.is-open .hero__nav-social a {
    flex: 1 1 auto;
    min-width: calc(33% - 8px);
  }

  .hero__nav.is-open .hero__nav-join {
    display: block;
    margin-top: 8px;
  }

  .hero__nav.is-open .hero__nav-join a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff !important;
    font-weight: 700;
  }

  .hero__body,
  .about__feature,
  .about__row,
  .about-card,
  .about-goals__list,
  .about-role__list,
  .projects__grid,
  .join__banner,
  .footer__grid,
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    flex-direction: row;
    align-items: center;
    min-height: 0;
  }

  .quote-card__photo {
    order: 0;
    flex: none;
    width: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: 10px 12px 10px 4px;
    background: transparent;
  }

  .quote-card__photo img {
    width: 104px;
    max-width: 104px;
    max-height: none;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
  }

  .section-head,
  .interviews__head,
  .footer__top {
    flex-direction: column;
  }

  .footer__nav {
    width: 100%;
    border-radius: 24px;
  }

  .footer__contacts,
  .footer__social {
    text-align: left;
    justify-content: flex-start;
  }

  .project-card--lg {
    min-height: 400px;
  }

  .projects__grid,
  .projects__grid--mirror {
    grid-template-columns: 1fr;
  }

  .join__visual {
    justify-self: start;
  }

  .join__cta {
    justify-self: stretch;
    justify-content: flex-start;
    padding-right: 0;
  }

  .join__btn {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .news__grid,
  .interviews__grid {
    grid-template-columns: 1fr;
  }

  .legal__bar {
    border-radius: 24px;
  }

  .footer {
    border-radius: 32px 32px 0 0;
  }

  .stat-card {
    min-height: 180px;
  }
}



/* ===== Logo images ===== */
.hero__logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.footer__logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  border-radius: 10px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo {
  padding: 12px 20px;
}

/* ===== Eco feed carousel ===== */
.eco-feed {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.eco-feed__nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-pill);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.eco-feed__nav:hover {
  background: #d5e8da;
  transform: scale(1.05);
}

.eco-feed__nav:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.eco-feed__nav svg {
  width: 18px;
  height: 18px;
}

.eco-feed__viewport {
  overflow: hidden;
  width: 100%;
}

.eco-feed__track {
  display: flex;
  gap: 14px;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.eco-feed__track .interview-card,
.eco-feed__track .eco-news-card {
  flex: 0 0 220px;
  min-width: 0;
  border-radius: 20px;
}

.eco-news-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  color: inherit;
  border: 1px solid rgba(20, 60, 40, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
}

.eco-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.eco-news-card__thumb {
  aspect-ratio: 16 / 10;
  background: #d5ebd9;
  overflow: hidden;
}

.eco-news-card__thumb img,
.eco-news-card__thumb .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.eco-news-card__body {
  padding: 12px 14px 16px;
}

.eco-news-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.eco-news-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.eco-news-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eco-feed .interview-card__thumb {
  aspect-ratio: 16 / 10;
}

.eco-feed .interview-card__body {
  padding: 12px 14px 16px;
}

.eco-feed .interview-card h3 {
  font-size: 13px;
  -webkit-line-clamp: 3;
}

.eco-feed .interview-card__play span {
  width: 40px;
  height: 40px;
}

.eco-feed .interview-card__play svg {
  width: 14px;
  height: 14px;
}

.interviews-status {
  width: 100%;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border-radius: 22px;
}

@media (max-width: 1100px) {
  .eco-feed__track .interview-card,
  .eco-feed__track .eco-news-card {
    flex-basis: 200px;
  }
}

@media (max-width: 640px) {
  .eco-feed {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .eco-feed__nav {
    width: 40px;
    height: 40px;
  }

  .eco-feed__track .interview-card,
  .eco-feed__track .eco-news-card {
    flex-basis: min(220px, 78vw);
  }
}

/* ===== Subscribe CTA ===== */
.subscribe {
  width: 100%;
  padding: 28px 0 32px;
}

.subscribe .inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

.subscribe__banner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px);
  border-radius: clamp(22px, 2.5vw, 32px);
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(47, 158, 98, 0.14);
  box-shadow: 0 14px 36px rgba(20, 60, 40, 0.1);
}

.subscribe__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  max-width: 720px;
  color: var(--text);
}

.subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.subscribe__honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.subscribe__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.subscribe__field {
  flex: 1 1 240px;
  min-width: 0;
}

.subscribe__field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid rgba(47, 158, 98, 0.28);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 500;
}

.subscribe__field input::placeholder {
  color: #7a8f82;
}

.subscribe__field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 158, 98, 0.2);
  background: #fff;
}

.subscribe__btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(47, 158, 98, 0.28);
}

.subscribe__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  max-width: 560px;
}

.subscribe__consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.subscribe__consent a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.subscribe__consent a:hover {
  opacity: 0.8;
}

.subscribe__error,
.subscribe__ok {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.subscribe__error {
  color: #c0392b;
}

.subscribe__ok {
  color: var(--blue);
}

@media (max-width: 640px) {
  .subscribe__row {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe__btn {
    width: 100%;
  }
}

/* ===== MAX CTA (screen-8 style) ===== */
.max-cta {
  width: 100%;
  padding: 4px 0 8px;
}

.max-cta .inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

.max-cta__banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
  min-height: 260px;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 56px);
  border-radius: 36px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 50%, rgba(90, 200, 130, 0.4), transparent 28%),
    radial-gradient(circle at 88% 40%, rgba(47, 158, 98, 0.35), transparent 22%),
    linear-gradient(100deg, #34a86a 0%, #268a53 28%, #145a38 62%, #04140c 100%);
  box-shadow: 0 18px 40px rgba(31, 106, 72, 0.22);
  width: 100%;
}

.max-cta__banner--simple {
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  min-height: 110px;
  padding: clamp(14px, 1.8vw, 20px) clamp(22px, 3vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 50%, rgba(90, 200, 130, 0.35), transparent 28%),
    radial-gradient(circle at 88% 40%, rgba(47, 158, 98, 0.28), transparent 22%),
    linear-gradient(100deg, #34a86a 0%, #268a53 28%, #145a38 62%, #04140c 100%);
}

.max-cta__banner::before {
  content: none;
}

.max-cta__banner--simple .max-cta__text h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 28px);
  max-width: 520px;
}

.max-cta__banner--simple .max-cta__badge {
  margin-bottom: 14px;
  min-height: 32px;
  font-size: 13px;
}

.max-cta__banner--simple .max-cta__visual {
  width: min(150px, 18vw);
}

.max-cta__banner--simple .max-cta__visual::before {
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.04),
    0 0 0 36px rgba(255, 255, 255, 0.03),
    0 0 0 54px rgba(255, 255, 255, 0.02);
}

.max-cta__text {
  position: relative;
  z-index: 1;
}

.max-cta__text h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 560px;
}

.max-cta__badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  margin-bottom: 22px;
  border-radius: var(--pill);
  background: var(--white);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.max-cta__visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  width: min(280px, 30vw);
  aspect-ratio: 1;
}

.max-cta__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.04),
    0 0 0 56px rgba(255, 255, 255, 0.03),
    0 0 0 84px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

/* ===== Modal ===== */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 50, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: var(--white);
  border-radius: 28px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(20, 60, 40, 0.25);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
}

.modal__dialog--wide,
.modal__dialog--docs {
  width: min(100%, 720px);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-pill);
  font-size: 24px;
  line-height: 1;
  color: #333;
}

.modal__dialog h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  padding-right: 44px;
}

.modal__lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.modal__scroll {
  overflow: auto;
  padding-right: 6px;
  margin-right: -4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.modal__scroll h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.modal__scroll h4 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
}

.modal__scroll p {
  margin: 0 0 10px;
}

.modal__scroll a {
  color: var(--blue);
  font-weight: 600;
}

.modal__loading {
  padding: 24px 8px;
  color: var(--muted);
  text-align: center;
}

.docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.docs-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid rgba(20, 60, 40, 0.08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

a.docs-list__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(47, 158, 98, 0.35);
}

.docs-list__item--disabled {
  opacity: 0.72;
  cursor: default;
}

.docs-list__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #3cb371, #1f8a52);
  color: #fff;
}

.docs-list__icon svg {
  width: 26px;
  height: 26px;
}

.docs-list__icon--muted {
  background: #d5e8da;
  color: #3a6b4e;
}

.docs-list__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.docs-list__text strong {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
}

.docs-list__text em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contacts-list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid rgba(20, 60, 40, 0.08);
}

.contacts-list__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.contacts-list a,
.contacts-list__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.contacts-list a {
  color: var(--blue);
}

.join-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.join-form {
  display: grid;
  gap: 14px;
  position: relative;
}

.join-form__field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.join-form__field input,
.join-form__field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid rgba(20, 60, 40, 0.12);
  border-radius: 14px;
  background: var(--bg);
  font: inherit;
  font-weight: 500;
  color: var(--text);
}

.join-form__field input:focus,
.join-form__field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 158, 98, 0.2);
}

.join-form__success {
  text-align: center;
  padding: 28px 12px 8px;
}

.join-form__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 158, 98, 0.12);
  color: var(--blue);
}

.join-form__success-icon svg {
  width: 32px;
  height: 32px;
}

.join-form__success h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
}

.join-form__success p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.join-form__error {
  margin: 0;
  font-size: 13px;
  color: #b42318;
}

.join-form__submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* ===== Regions page ===== */
.regions-page {
  padding: 28px 0 64px;
}

.regions-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.regions-map-card,
.regions-list-card,
.regions-detail {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.regions-map-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: linear-gradient(180deg, #d9f0e0, #eef6f0);
}

.regions-map-svg .ru-land {
  fill: #d5e8da;
  stroke: #fff;
  stroke-width: 1;
}

.regions-map-svg .ru-active {
  fill: var(--blue);
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
}

.regions-map-svg .ru-active:hover,
.regions-map-svg .ru-active.is-selected {
  fill: #1f9de8;
  filter: brightness(1.05);
}

.regions-map-svg .ru-pin {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2;
  cursor: pointer;
}

.regions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 520px;
  overflow: auto;
}

.regions-list button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 6px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s ease;
}

.regions-list button:hover,
.regions-list button.is-active {
  background: rgba(47, 158, 98, 0.12);
  color: #0b6fa8;
}

.regions-detail h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.regions-detail p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.regions-detail a {
  color: var(--blue);
  font-weight: 600;
}

.regions-search {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(20, 60, 40, 0.12);
  background: var(--bg);
  font: inherit;
}

.page-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  background: rgba(238, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 60, 40, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header-bar .hero__logo-img {
  height: 56px;
}

.page-header-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.page-header-bar nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.page-header-bar nav a:hover,
.page-header-bar nav a[aria-current="page"] {
  color: var(--blue);
}

@media (max-width: 920px) {
  .max-cta__banner,
  .regions-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .max-cta__visual {
    justify-self: start;
  }
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eef6f0 0%, #d9f0e0 45%, #e8f5ec 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.preloader__tree {
  width: min(120px, 28vw);
  height: auto;
  overflow: visible;
}

.preloader__grow {
  transform-origin: 60px 158px;
  transform: scaleY(0.15);
  animation: tree-grow 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.preloader__trunk {
  fill: none;
  stroke: #1f6b48;
  stroke-width: 6;
  stroke-linecap: round;
}

.preloader__leaf {
  fill: #2f9e62;
  opacity: 0.95;
}

.preloader__leaf--1,
.preloader__leaf--2 {
  fill: #268a53;
}

.preloader__leaf--5,
.preloader__leaf--6 {
  fill: #3cb371;
}

.preloader__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f6b48;
  opacity: 0;
  animation: preloader-fade 0.5s ease 0.45s forwards;
}

@keyframes tree-grow {
  0% { transform: scaleY(0.12); }
  60% { transform: scaleY(1.04); }
  100% { transform: scaleY(1); }
}

@keyframes preloader-fade {
  to { opacity: 1; }
}

/* ===== Article page ===== */
.article-page {
  padding: 12px 0 64px;
}

.article-page__back {
  margin-bottom: 22px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.article-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.article-page__meta .news-card__badge {
  position: static;
}

.article-page h1 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
}

.article-page__hero {
  margin: 0 0 24px;
  border-radius: 28px;
  overflow: hidden;
  background: #d5ebd9;
  aspect-ratio: 16 / 9;
  max-height: 460px;
}

.article-page__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-page__hero--empty {
  display: grid;
  place-items: center;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 8px;
}

.article-gallery__item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d5ebd9;
}

.article-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-page__body {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.article-page__body p,
.article-page__body li {
  margin: 0 0 14px;
}

.article-page__body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 12px 0;
  display: block;
  object-fit: cover;
}

.article-page__body figure {
  margin: 16px 0;
}

.article-page__source {
  display: none;
}

/* ===== Child pages: map / heads / news ===== */
.page-top {
  padding-top: var(--pad);
  padding-bottom: 0;
}

.hero--bar {
  min-height: 0;
  padding-bottom: 18px;
  margin-bottom: 8px;
}

.hero--bar .hero__header {
  margin-bottom: 0;
}

.leaflet-control-attribution,
.leaflet-bottom.leaflet-right,
.leaflet-container .leaflet-control-attribution {
  display: none !important;
}

.leaflet-container {
  background: #eef6f0;
  font: inherit;
}

.map-tooltip {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-sm);
}

.map-page,
.heads-page,
.news-page {
  width: 100%;
  padding: 8px 0 64px;
  min-height: 60vh;
}

.map-page__intro {
  margin: 8px 0 32px;
  padding-top: 8px;
}

.map-page__intro.reveal {
  opacity: 1;
  transform: none;
}

.map-page__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.map-page__intro h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 920px;
  color: var(--text);
}

.map-page__intro p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.45;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: start;
}

.map-card,
.regions-list-card,
.regions-detail,
.map-detail {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 60, 40, 0.06);
}

.map-card {
  padding: 10px;
  overflow: hidden;
}

.leaflet-host {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 360px;
  border-radius: 22px;
  background: #eef6f0;
  z-index: 0;
}

.leaflet-host .leaflet-pane,
.leaflet-host .leaflet-overlay-pane,
.leaflet-host .leaflet-overlay-pane svg {
  pointer-events: auto;
}

.map-card__hint {
  display: none;
}

.map-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.map-detail {
  position: sticky;
  top: 16px;
  min-height: 160px;
}

.map-detail__hint {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: var(--muted) !important;
}

.regions-list-card {
  padding: 14px;
  max-height: min(42vh, 360px);
  display: flex;
  flex-direction: column;
}

.regions-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  overflow: auto;
}

.regions-list button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 6px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: grid;
  gap: 2px;
}

.regions-list button span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.regions-list button:hover,
.regions-list button.is-active {
  background: rgba(47, 158, 98, 0.12);
  color: var(--blue);
}

.regions-detail,
.map-detail {
  padding: 22px;
}

.map-detail__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.map-detail h3,
.regions-detail h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.map-detail p,
.regions-detail p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.map-detail a,
.regions-detail a {
  color: var(--blue);
  font-weight: 600;
}

.map-detail__status {
  color: #a06a00 !important;
  font-weight: 600;
}

.heads-block {
  margin-bottom: 40px;
}

.heads-block h2 {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
}

.heads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===== Org chart (Руководство) ===== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-bottom: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.org-chart__connector {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.org-chart__stem {
  display: block;
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2f9e62 0%, #1f8a52 100%);
  box-shadow: 0 0 0 4px rgba(47, 158, 98, 0.12);
}

.org-section {
  width: 100%;
  position: relative;
}

.org-section__title {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--blue);
  letter-spacing: 0.01em;
}

.org-section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #2f9e62, #7bc896);
}

.org-section__grid {
  display: grid;
  gap: 16px;
  justify-content: center;
}

.org-section__grid--chair {
  grid-template-columns: minmax(220px, 300px);
  justify-content: center;
}

.org-section__grid--deputies {
  grid-template-columns: repeat(3, minmax(0, 220px));
}

.org-section__grid--executive {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.org-section__grid--departments {
  grid-template-columns: repeat(3, minmax(0, 220px));
}

.org-chart__branch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.org-section:not(.org-section--chair) .org-chart__branch::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 3px;
  height: 18px;
  background: #2f9e62;
  transform: translateX(-50%);
  border-radius: 2px;
}

.org-section__tree {
  position: relative;
  height: 18px;
  margin: 0 auto 0;
  width: min(100%, 720px);
}

.org-section__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #2f9e62;
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(47, 158, 98, 0.12);
}

.org-section:not(.org-section--chair)::before {
  display: none;
}

.org-section--chair::before {
  display: none;
}

.org-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 60, 40, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.org-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.org-card--chair {
  border-radius: 26px;
  box-shadow: var(--shadow);
  border-color: rgba(47, 158, 98, 0.2);
}

.org-card__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 160px;
  background: #d9f0e0;
  overflow: hidden;
}

.org-card--chair .org-card__photo {
  max-height: 220px;
  aspect-ratio: 1 / 1;
}

.org-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.org-card__photo.is-empty,
.org-card__photo:empty {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3cb371, #1f8a52 55%, #0f5c38);
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.org-card__photo.is-empty span,
.org-card__photo > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #3cb371, #1f8a52 55%, #0f5c38);
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.org-card__body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.org-card__body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.org-card--chair .org-card__body {
  padding: 14px 16px 18px;
}

.org-card--chair .org-card__body h3 {
  font-size: clamp(16px, 1.4vw, 18px);
}

.org-card__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
}

.org-card__body p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.org-card__body .link-blue {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
}

.head-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 60, 40, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.head-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.head-card__photo {
  aspect-ratio: 5 / 6;
  background: #d9f0e0;
  overflow: hidden;
}

.head-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.head-card__ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, #3cb371, #1f8a52 55%, #0f5c38);
}

.head-card__body {
  padding: 18px 18px 22px;
}

.head-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.head-card__role {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
}

.head-card__body p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.news-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.news-filter {
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: var(--white);
  border: 1px solid rgba(20, 60, 40, 0.1);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.news-filter.is-active,
.news-filter:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.news-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card--page {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 60, 40, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: inherit;
  cursor: pointer;
}

.news-card--page:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.modal__dialog--article {
  width: min(100%, 860px);
  max-height: min(92vh, 960px);
}

.article-back {
  align-self: flex-start;
  margin: 0 0 16px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.article-meta .news-card__badge {
  position: static;
}

.article-hero {
  margin: 8px 0 18px;
  border-radius: 18px;
  overflow: hidden;
  background: #d5ebd9;
  aspect-ratio: 16 / 8;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 15px;
  line-height: 1.65;
}

.article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

.article-body p {
  margin: 0 0 12px;
}

.article-source {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.article-source a {
  color: var(--blue);
  font-weight: 600;
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #d5ebd9;
  overflow: hidden;
}

.news-card__media img,
.news-card__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.news-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card__badge--eco {
  background: #123a28;
  color: #fff;
}

.news-card__body {
  padding: 16px 18px 20px;
}

.news-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.news-card__body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}

.news-card__body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .heads-grid,
  .news-page__grid,
  .article-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .org-section__grid--deputies,
  .org-section__grid--departments,
  .org-section__grid--executive {
    grid-template-columns: repeat(2, minmax(0, 220px));
  }
}

@media (max-width: 920px) {
  .map-detail {
    position: static;
  }

  .max-cta__banner,
  .max-cta__banner--simple,
  .regions-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .max-cta__visual {
    justify-self: start;
    width: min(140px, 36vw);
  }

  .max-cta__banner--simple {
    min-height: 0;
  }

  .hero__list li {
    font-size: 14px;
  }

  .modal__dialog,
  .modal__dialog--wide,
  .modal__dialog--docs,
  .modal__dialog--article {
    width: min(100% - 24px, 560px);
    max-height: min(92vh, 900px);
    padding: 24px 18px 20px;
    border-radius: 22px;
    margin: 12px;
  }

  .org-section__grid--deputies,
  .org-section__grid--executive,
  .org-section__grid--departments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .org-section__tree {
    width: 70%;
  }

  .org-section:not(.org-section--chair) .org-chart__branch::before {
    top: -18px;
    height: 18px;
  }
}

@media (max-width: 720px) {
  .map-layout,
  .heads-grid,
  .news-page__grid,
  .article-gallery,
  .news__grid,
  .projects__grid,
  .projects__grid--mirror,
  .stats__grid,
  .quote-card {
    grid-template-columns: 1fr;
  }

  .quote-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
  }

  .quote-card__photo {
    order: -1;
    flex: none;
    width: auto;
    align-self: center;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    padding: 16px 16px 0;
    background: transparent;
  }

  .quote-card__photo img {
    position: relative;
    width: 108px;
    max-width: 108px;
    max-height: none;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
  }

  .quote-card__body {
    padding: 14px 20px 20px;
    align-items: center;
  }

  .quote-card__text {
    font-size: 15px;
  }

  .leaflet-host {
    min-height: 260px;
    height: 48vh;
  }

  .map-sidebar {
    gap: 12px;
  }

  .regions-list-card {
    max-height: 240px;
  }

  .hero__title {
    font-size: clamp(26px, 8vw, 36px);
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .article-page__hero {
    aspect-ratio: 16 / 10;
    max-height: none;
    border-radius: 20px;
  }

  .article-page__body {
    font-size: 15px;
  }

  .preloader__tree {
    width: 96px;
  }

  .page-header-bar {
    flex-wrap: wrap;
  }

  .page-header-bar nav {
    width: 100%;
    order: 3;
  }

  .join__btn {
    width: 100%;
    max-width: none;
  }

  .footer__contacts,
  .footer__social {
    text-align: left;
    justify-content: flex-start;
  }

  .org-section__grid--deputies,
  .org-section__grid--executive,
  .org-section__grid--departments {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }

  .org-section__tree,
  .org-section:not(.org-section--chair) .org-chart__branch::before {
    display: none;
  }

  .org-chart__stem {
    height: 28px;
  }

  .org-section__title {
    font-size: 15px;
  }

  .org-card__photo {
    max-height: 140px;
  }

  .org-chart__top {
    width: 100%;
  }

  .hero,
  .hero-wrap,
  .fw,
  .inner,
  .map-card,
  .quote-card,
  .about-role,
  .max-cta__banner,
  .join__banner {
    max-width: 100%;
  }

  .hero {
    overflow: hidden;
  }

  .hero__header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero__logo-img {
    max-width: min(220px, 58vw);
  }

  .stat-card {
    min-height: 160px;
    padding: 28px 22px;
  }

  .stat-card__value {
    font-size: clamp(48px, 14vw, 72px);
  }

  .about-card {
    gap: 16px;
  }

  .about-card .about-media {
    aspect-ratio: 16 / 10;
    min-height: 160px;
  }

  .eco-feed,
  .news__grid,
  .partners__track {
    overflow-x: hidden;
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal__dialog,
  .modal__dialog--wide,
  .modal__dialog--docs,
  .modal__dialog--article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 22px 22px 0 0;
    max-height: min(90vh, 900px);
  }
}

.leaflet-interactive {
  cursor: pointer;
}

@media (max-width: 1180px) {
  .hero__social a {
    padding: 0 8px;
    font-size: 11px;
  }

  .hero__search-form {
    flex-basis: 140px;
    max-width: 160px;
  }

  .hero__cta-top {
    padding: 0 12px;
    font-size: 12px;
  }

  .hero__nav {
    gap: 2px 6px;
  }

  .hero__nav > li > a {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 14px;
    --radius: 28px;
  }

  .quote-card__photo {
    min-height: 0;
    aspect-ratio: auto;
    padding: 10px 14px 0;
    background: transparent;
  }

  .quote-card__photo img {
    width: 96px;
    max-width: 96px;
  }

  .org-card__body {
    padding: 14px;
  }

  .map-page__intro h1,
  .heads-page .map-page__intro h1 {
    font-size: clamp(22px, 7vw, 30px);
  }
}

@media (max-width: 640px) {
  .site-search {
    grid-template-columns: 1fr;
  }

  .site-search__btn {
    width: 100%;
  }
}

/* ===== WordPress theme overrides ===== */
.hero__logo .custom-logo-link { display: block; line-height: 0; }
.hero__logo .custom-logo,
.hero__logo img.custom-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.news-card {
  text-decoration: none;
  color: inherit;
}

.news-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.5vw, 22px);
}

@media (max-width: 1100px) {
  .news-page__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-page__grid { grid-template-columns: 1fr; }
}

.article-page {
  padding: 24px 0 64px;
}
.article-page__title {
  margin: 8px 0 20px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}
.article-page__hero {
  margin: 0 0 24px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #d9efe0;
}
.article-page__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-page__body {
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}
.article-page__body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.article-page__meta {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links,
.reo-pagination .nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 36px 0 12px;
  flex-wrap: wrap;
}
.nav-links a,
.nav-links span,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(47,158,98,.16);
}
.page-numbers.current {
  background: var(--blue);
  color: #fff;
}

.eco-card {
  display: flex;
  flex-direction: column;
  min-width: min(280px, 78vw);
  max-width: 300px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.eco-card__thumb {
  aspect-ratio: 16/10;
  background: #d9efe0;
  overflow: hidden;
}
.eco-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eco-card__body {
  padding: 14px 16px 18px;
}
.eco-card__date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.eco-card__body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}
.eco-card__body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.join-form__honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}
