/* ============================================
   Экотропа РГО в Лосином острове — стили hero
   Фирменный стиль: тёмно-зелёный фон, жёлтые акценты,
   живописная иллюстрация, асимметричная композиция.
   ============================================ */

:root {
  /* Палитра из фирменного стиля полиграфии */
  --color-bg:        #195B58;   /* фон */
  --color-bg-deep:   #0F3E3C;   /* затемнение для глубины */
  --color-bg-light:  #1F6C68;   /* подсветка */
  --color-accent:    #FFE865;   /* жёлтый акцент заголовков */
  --color-accent-soft: #F5D945; /* тёплый жёлтый для hover */
  --color-text:      #EAF4F2;   /* основной текст на тёмном */
  --color-text-mute: #9EBBB7;   /* приглушённый текст */
  --color-line:      rgba(234, 244, 242, 0.18);

  /* Типографика */
  --font-display: 'Unbounded', 'TikTok Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Roboto', system-ui, sans-serif;

  /* Размерная сетка */
  --container: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}

/* Иллюстрация с домом — фоном справа.
   Используем mask, чтобы получить мягкий "акварельный" край,
   как в полиграфии (PNG уже имеет рваный край, но усилим).
*/
.hero__illustration {
  position: absolute;
  top: 0;
  right: -4%;
  width: 62%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Overlay цвета фона поверх левого края иллюстрации — для бесшовного слияния */
.hero__illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Сверху — короткий фейд от цвета фона вниз, прячет резкий верх картинки за шапкой */
    linear-gradient(
      to bottom,
      var(--color-bg) 0%,
      rgba(25, 91, 88, 0.85) 4%,
      rgba(25, 91, 88, 0.4) 8%,
      transparent 14%
    ),
    /* Слева — основная маска, как раньше */
    linear-gradient(
      100deg,
      var(--color-bg) 0%,
      rgba(25, 91, 88, 0.85) 12%,
      rgba(25, 91, 88, 0.5) 25%,
      rgba(25, 91, 88, 0.2) 40%,
      transparent 55%
    );
  z-index: 2;
  pointer-events: none;
}

.hero__illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Очень растянутая мягкая маска — переход начинается рано и идёт долго */
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0,0,0,0.05) 10%,
    rgba(0,0,0,0.25) 22%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.85) 50%,
    #000 65%,
    #000 100%
  );
          mask-image: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0,0,0,0.05) 10%,
    rgba(0,0,0,0.25) 22%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.85) 50%,
    #000 65%,
    #000 100%
  );
  position: relative;
  z-index: 1;
}

/* Зернистость поверх — тонкая бумажная фактура */
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: relative;
  z-index: 20;
  padding: 28px 0 0;
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__support {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__support-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  font-weight: 400;
  white-space: nowrap;
}

.header__support-logos {
  height: 28px;
  width: auto;
  display: block;
}

/* ============================================
   HERO CONTENT
   ============================================ */

.hero__content {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 120px;
}

/* Внутренний блок текста — ограничиваем шириной, чтобы не лез на иллюстрацию */
.hero__text-col {
  max-width: 62%;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 125%;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--color-accent);
  margin-bottom: 36px;
  animation: fadeUp 0.9s ease 0.25s both;
}

.hero__title-accent {
  color: var(--color-accent);
  white-space: nowrap;
}

.hero__lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 46ch;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 1s ease 0.4s both;
}

/* Мета-блок с километражем */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 0;
  animation: fadeUp 1s ease 0.55s both;
}

.hero__meta-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.hero__meta-unit {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--color-accent);
  letter-spacing: 0;
}

.hero__meta-label {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  font-weight: 500;
  margin-left: 6px;
  display: block;
  width: 100%;
}

.hero__meta-divider {
  width: 1px;
  height: 44px;
  background: var(--color-line);
}

.hero__meta-item--simple .hero__meta-label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-text);
  font-weight: 500;
  margin: 0;
}

.hero__meta-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-mute);
  display: block;
  margin-top: 2px;
}

/* Кнопки */
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease 0.7s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg-deep);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--color-accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(255, 232, 101, 0.5);
}

.btn--primary .btn__arrow {
  transition: transform 0.3s ease;
  font-size: 18px;
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}

.btn--ghost:hover {
  background: rgba(255, 232, 101, 0.06);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ОБЩИЕ КОМПОНЕНТЫ СЕКЦИЙ
   ============================================ */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 125%;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--color-accent);
  margin-bottom: 32px;
}

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

/* ============================================
   СЕКЦИЯ: ГДЕ НАХОДИТСЯ
   ============================================ */

.location {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: var(--color-bg);
  overflow: hidden;
}

.location__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.location__lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--color-text);
  max-width: 46ch;
  margin-bottom: 40px;
  font-weight: 300;
}

/* Способы добраться */
.routes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}

.route {
  display: flex;
  align-items: center;
  gap: 18px;
}

.route__icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.route__icon svg {
  width: 32px;
  height: 32px;
}

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

.route__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--color-text);
  letter-spacing: 0;
}

.route__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-mute);
  font-weight: 400;
}

.location__cta {
  /* Уже наследует .btn .btn--primary */
}

/* Карта */
.location__map {
  position: relative;
}

.location__map img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.25));
}

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 28px 0 0;
  justify-content: center;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.legend__marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--color-text);
}

.legend__marker--art {
  background: #0F3E3C;
  border: 1.5px solid var(--color-text);
}

.legend__marker--interactive {
  background: #2BB1A8;
  color: var(--color-bg-deep);
}

.legend__marker--info {
  background: #0F3E3C;
  border: 1.5px solid #0F3E3C;
  width: 16px;
  height: 16px;
}

/* ============================================
   СЕКЦИЯ: ЗВЕРИ И ПТИЦЫ ЛОСИНОГО ОСТРОВА
   ============================================ */

.creatures {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: var(--color-bg);
  overflow: visible;
}

.creatures__head {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.creatures__lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--color-text);
  font-weight: 300;
  margin-top: -16px;
  max-width: 52ch;
}

/* Сетка: 4 колонки на десктопе */
.creatures__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Контейнер одного существа — позиционирует поповер */
.creature {
  position: relative;
}

/* Кнопка-фото */
.creature__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #2A6E68;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  width: 100%;
}

.creature__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.creature__photo:hover {
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}

.creature__photo:hover img {
  transform: scale(1.05);
}

.creature.is-open .creature__photo {
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.45),
              0 0 0 2px var(--color-accent);
}

.creature.is-open .creature__photo img {
  transform: scale(1.05);
}

/* Поповер с фактами — появляется выше фото, со смещением вправо для асимметрии */
.creature__card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  /* +24px по X — асимметрия вправо */
  transform: translateX(calc(-50% + 24px)) translateY(8px);
  width: clamp(260px, 22vw, 320px);
  background: #2A6E68;
  border-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: 0 -20px 48px -12px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 232, 101, 0.18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 50;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}

.creature.is-open .creature__card {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(calc(-50% + 24px)) translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}

/* Стрелочка — теперь снизу карточки, указывает вниз на фото.
   Позиция стрелочки компенсирует смещение карточки вправо — стрелка стоит над центром фото. */
.creature__card::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: calc(50% - 24px);
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #2A6E68;
  border-right: 1px solid rgba(255, 232, 101, 0.18);
  border-bottom: 1px solid rgba(255, 232, 101, 0.18);
  border-top: 0;
  border-left: 0;
  border-radius: 2px;
}

/* Прижим к краям сетки. На крайней левой колонке нельзя смещать карточку влево — упирается в край.
   Поэтому в первой колонке карточка идёт от левого края с тем же сдвигом вправо. */
.creature:nth-child(4n+1) .creature__card {
  left: 0;
  transform: translateX(24px) translateY(8px);
}
.creature:nth-child(4n+1).is-open .creature__card {
  transform: translateX(24px) translateY(0);
}
.creature:nth-child(4n+1) .creature__card::before {
  /* Стрелочка над центром фото (фото слева от карточки) */
  left: calc(50% - 24px);
  transform: translateX(-50%) rotate(45deg);
}

/* На крайней правой — карточка должна сместиться ВЛЕВО, не вправо */
.creature:nth-child(4n) .creature__card {
  left: auto;
  right: 0;
  transform: translateX(-24px) translateY(8px);
}
.creature:nth-child(4n).is-open .creature__card {
  transform: translateX(-24px) translateY(0);
}
.creature:nth-child(4n) .creature__card::before {
  /* Стрелочка над центром фото (фото справа от карточки) */
  left: auto;
  right: calc(50% - 24px);
  transform: translateX(50%) rotate(45deg);
}

/* Заголовок и текст */
.creature__name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--color-accent);
  letter-spacing: -0.01em;
  margin: 0 36px 12px 0;
}

.creature__card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 10px;
  font-weight: 400;
}

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

/* Крестик закрытия */
.creature__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 232, 101, 0.12);
  color: var(--color-accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-family: var(--font-body);
}

.creature__close:hover {
  background: rgba(255, 232, 101, 0.25);
}

/* ============================================
   СЕКЦИЯ: О ЛОСИНОМ ОСТРОВЕ
   ============================================ */

.about {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: var(--color-bg);
  overflow: hidden;
}

/* Заголовок секции — как в других секциях */
.about__head {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.about__lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 300;
  margin-top: -16px;
  max-width: 70ch;
}

.about__highlight {
  color: var(--color-accent);
  font-weight: 500;
  white-space: nowrap;
}

/* Блок со статистикой */
.about__stats {
  max-width: var(--container);
  margin: 0 auto clamp(60px, 8vw, 100px);
}

.about__stats-head {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.about__stats-lead {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.stat {
  background: #2A6E68;
  border-radius: 16px;
  padding: clamp(20px, 2vw, 28px) clamp(18px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 130px;
  justify-content: space-between;
  transition: transform 0.3s ease, background 0.3s ease;
}

.stat:hover {
  transform: translateY(-2px);
  background: #2F7B74;
}

.stat__num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(36px, 3.5vw, 52px);
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat__plus {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--color-accent);
}

.stat__label {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.9vw, 14px);
  line-height: 1.3;
  color: var(--color-text);
  font-weight: 400;
}

/* Блок про науку — лось слева, текст справа */
.about__science {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about__science-illustration img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.about__science-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about__science-text p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 300;
  margin: 0;
  max-width: 56ch;
}

/* ============================================
   СЕКЦИЯ: РУССКОЕ ГЕОГРАФИЧЕСКОЕ ОБЩЕСТВО
   ============================================ */

.rgo {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: var(--color-bg);
  overflow: hidden;
}

.rgo__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.rgo__logo,
.rgo__text {
  min-width: 0; /* чтобы grid-track не разрастался от длинных слов */
}

.rgo__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rgo__logo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  /* SVG чёрный — инвертируем в светлый, оставляем приятный приглушённый тон */
  filter: invert(1) brightness(0.92) sepia(0.05);
  opacity: 0.92;
}

.rgo__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rgo__text .rgo__lead {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.25;
  color: var(--color-accent);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  max-width: 28ch;
}

.rgo__text p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--color-text);
  font-weight: 300;
  margin: 0;
  max-width: 60ch;
}

.rgo__cta {
  align-self: flex-start;
  margin-top: 16px;
}

/* ============================================
   ПОДВАЛ
   ============================================ */

.footer {
  position: relative;
  background: var(--color-bg-deep);
  padding: clamp(48px, 5vw, 64px) var(--gutter) 32px;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Блок поддержки — по центру сверху */
.footer__support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__support-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  font-weight: 400;
  white-space: nowrap;
}

.footer__support-logos {
  height: 28px;
  width: auto;
  display: block;
}

/* Нижняя строка: слева соцсети + копирайт, справа "Сделано в Лесу" */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Соцсети */
.footer__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 232, 101, 0.08);
  color: var(--color-text);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer__socials a:hover {
  background: rgba(255, 232, 101, 0.2);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer__socials svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-mute);
  font-weight: 400;
}

.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-mute);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

.footer__made-leaf {
  height: 16px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Перекрашиваем SVG-веточку в белый */
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer__made:hover .footer__made-leaf {
  transform: rotate(-12deg);
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 1100px) {
  .hero__text-col {
    max-width: 65%;
  }
  .hero__illustration {
    width: 55%;
    opacity: 0.55;
  }
  .hero__illustration img {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%, #000 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 60%, #000 100%);
  }

  /* Звери и птицы на промежуточных — 3 колонки */
  .creatures__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .creature:nth-child(4n+1) .creature__card,
  .creature:nth-child(4n) .creature__card {
    left: 50%;
    right: auto;
    transform: translateX(calc(-50% + 24px)) translateY(8px);
  }
  .creature:nth-child(4n+1).is-open .creature__card,
  .creature:nth-child(4n).is-open .creature__card {
    transform: translateX(calc(-50% + 24px)) translateY(0);
  }
  .creature:nth-child(4n+1) .creature__card::before,
  .creature:nth-child(4n) .creature__card::before {
    left: calc(50% - 24px);
    right: auto;
    transform: translateX(-50%) rotate(45deg);
  }

  /* Прижимы для 3-колоночной раскладки */
  .creature:nth-child(3n+1) .creature__card {
    left: 0;
    right: auto;
    transform: translateX(24px) translateY(8px);
  }
  .creature:nth-child(3n+1).is-open .creature__card {
    transform: translateX(24px) translateY(0);
  }
  .creature:nth-child(3n+1) .creature__card::before {
    left: calc(50% - 24px);
    right: auto;
    transform: translateX(-50%) rotate(45deg);
  }
  .creature:nth-child(3n) .creature__card {
    left: auto;
    right: 0;
    transform: translateX(-24px) translateY(8px);
  }
  .creature:nth-child(3n).is-open .creature__card {
    transform: translateX(-24px) translateY(0);
  }
  .creature:nth-child(3n) .creature__card::before {
    left: auto;
    right: calc(50% - 24px);
    transform: translateX(50%) rotate(45deg);
  }

  /* About: статистика — 3 колонки */
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .about__science {
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .hero__text-col {
    max-width: 100%;
  }

  .hero__illustration {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    right: 0;
    opacity: 0.3;
  }

  .hero__illustration img {
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
            mask-image: linear-gradient(to top, #000 30%, transparent 100%);
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    justify-content: flex-start;
    padding: 68px 0 64px;
    flex: 0 0 auto;
  }

  .hero__title {
    font-size: clamp(28px, 7.5vw, 44px);
    line-height: 1.08;
  }

  .hero__meta {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero__meta-divider { display: none; }

  .btn { width: 100%; justify-content: center; }

  /* Location секция — складываем в одну колонку, карта сверху */
  .location__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .location__map {
    order: -1;
  }

  .section-title {
    font-size: clamp(28px, 7.5vw, 44px);
  }

  /* Звери и птицы: 2 колонки на мобиле. Карточка над фото на всю ширину сетки. */
  .creatures__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .creature__card,
  .creature:nth-child(4n+1) .creature__card,
  .creature:nth-child(4n) .creature__card,
  .creature:nth-child(3n+1) .creature__card,
  .creature:nth-child(3n) .creature__card {
    /* Карточка над фото, шире чем колонка */
    position: absolute;
    left: 0;
    right: auto;
    top: auto;
    bottom: calc(100% + 14px);
    width: calc(200% + 10px);
    transform: translateY(8px);
  }
  /* Если фото в правой колонке — карточка идёт влево */
  .creature:nth-child(even) .creature__card,
  .creature:nth-child(4n) .creature__card {
    left: auto;
    right: 0;
    transform: translateY(8px);
  }
  .creature.is-open .creature__card,
  .creature:nth-child(4n+1).is-open .creature__card,
  .creature:nth-child(4n).is-open .creature__card,
  .creature:nth-child(3n+1).is-open .creature__card,
  .creature:nth-child(3n).is-open .creature__card,
  .creature:nth-child(even).is-open .creature__card {
    transform: translateY(0);
  }
  /* Стрелочка снизу карточки, над фото в левой колонке */
  .creature__card::before {
    top: auto;
    bottom: -6px;
    left: 25%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(255, 232, 101, 0.18);
    border-bottom: 1px solid rgba(255, 232, 101, 0.18);
  }
  .creature:nth-child(even) .creature__card::before,
  .creature:nth-child(4n) .creature__card::before {
    left: auto;
    right: 25%;
    transform: translateX(50%) rotate(45deg);
  }
  .creature__name {
    font-size: 20px;
  }

  /* About: одна колонка на мобиле */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    min-height: 110px;
  }
  .about__science {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about__science-illustration {
    max-width: 320px;
    margin: 0 auto;
  }

  /* РГО: одна колонка, лого сверху */
  .rgo__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .rgo__logo img {
    max-width: 260px;
  }
  .rgo__text p {
    max-width: none;
  }

  /* Подвал на мобиле: соцсети+копирайт в столбик, всё центрировано */
  .footer__support {
    flex-direction: column;
    gap: 14px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .footer__left {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header__support-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .header__support-logos {
    height: 24px;
  }
}
