/* ============================================================
   «Мир медведей» — познавательный портал о жизни медведей
   ============================================================ */

:root {
  --ink: #241d14;
  --ink-soft: #4d4437;
  --muted: #857a6a;
  --paper: #f7f3eb;
  --paper-2: #efe9dd;
  --card: #fffdf9;
  --forest: #22402f;
  --forest-2: #16301f;
  --forest-3: #0d2015;
  --amber: #c07b39;
  --amber-2: #a05f22;
  --honey: #e8b968;
  --line: #e2d9c8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 22, 10, 0.1);
  --shadow-lg: 0 24px 60px rgba(30, 22, 10, 0.18);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--amber-2); text-decoration: none; }
a:hover { color: var(--forest); }

.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); }

h2.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.2rem;
}

section { padding: 4.2rem 0; }
section.alt { background: var(--paper-2); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-2);
  margin-bottom: 0.8rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 10px 24px rgba(192, 123, 57, 0.4); }
.btn-primary:hover { background: var(--amber-2); color: #fff; box-shadow: 0 14px 30px rgba(192, 123, 57, 0.45); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-2); color: #fff; }

/* ---------------- Шапка ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 32, 21, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--honey); }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > li { list-style: none; position: relative; }
.main-nav a.nav-link {
  display: block;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a.nav-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.main-nav a.nav-link.active { color: var(--honey); }

.dropdown-trigger { display: flex; align-items: center; gap: 0.4rem; }
.dropdown-trigger .caret { transition: transform 0.2s ease; font-size: 0.6rem; }
.dropdown:hover .dropdown-trigger .caret,
.dropdown:focus-within .dropdown-trigger .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--paper-2); color: var(--forest); }
.dropdown-menu a span { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 500; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #fff;
}
.burger svg { width: 26px; height: 26px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 22, 14, 0.88) 0%, rgba(10, 22, 14, 0.55) 45%, rgba(10, 22, 14, 0.15) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.14); } }
.hero .container { position: relative; z-index: 2; padding: 6rem 0; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 13ch;
  margin-bottom: 1.1rem;
}
.hero .hero-lat {
  font-style: italic;
  color: var(--honey);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.hero p.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------------- Полоса цифр ---------------- */
.stats {
  background: var(--forest);
  color: #fff;
  padding: 2.4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--honey);
}
.stat span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }

/* ---------------- Карточки видов ---------------- */
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.species-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.species-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.species-card figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.species-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.species-card:hover img { transform: scale(1.07); }
.species-card .card-status {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(13, 32, 21, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.species-card .card-status.vu { background: rgba(170, 90, 24, 0.9); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.35rem; margin-bottom: 0.15rem; }
.card-lat { font-style: italic; color: var(--muted); font-size: 0.88rem; margin-bottom: 0.7rem; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 1.1rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--amber-2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-link:hover { gap: 0.7rem; }
.card-link { transition: gap 0.18s ease; }

/* ---------------- Фичи (образ жизни) ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}
.feature .icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--forest);
}
.feature .icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------------- Таймлайн «Год медведя» ---------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
  margin-top: 2.6rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 4%;
  right: 4%;
  height: 3px;
  background: linear-gradient(90deg, var(--honey), var(--amber), var(--forest));
  border-radius: 3px;
}
.tl-item { position: relative; text-align: center; padding-top: 0; }
.tl-dot {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--honey);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border: 4px solid var(--paper-2);
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(13, 32, 21, 0.25);
}
.tl-item h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.tl-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------------- Цитата-баннер ---------------- */
.quote-banner {
  position: relative;
  padding: 5.5rem 0;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.quote-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 32, 21, 0.72);
}
.quote-banner .container { position: relative; z-index: 1; text-align: center; }
.quote-banner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.5;
  max-width: 30ch;
  margin: 0 auto 1rem;
}
.quote-banner cite {
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
  font-weight: 700;
}

/* ---------------- CTA ---------------- */
.cta-box {
  background: linear-gradient(120deg, var(--forest-2), var(--forest));
  border-radius: 24px;
  padding: 3.4rem 3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.cta-box p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }

/* ---------------- Страница вида ---------------- */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 14, 0.25) 0%, rgba(10, 22, 14, 0.45) 55%, rgba(10, 22, 14, 0.9) 100%);
}
.page-hero .hero-bg { background-position: center 40%; }
.page-hero .container { position: relative; z-index: 2; padding: 5rem 0 3rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .hero-lat { color: var(--honey); font-style: italic; margin-top: 0.4rem; font-size: 1.1rem; }

.breadcrumbs {
  padding: 1.1rem 0;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.breadcrumbs li + li::before { content: "→"; margin-right: 0.45rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--amber-2); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; }

.species-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: start;
  padding: 3.2rem 0 4.5rem;
}

article.species-article > p { margin-bottom: 1.2rem; color: var(--ink-soft); }
article.species-article h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 2.6rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--amber);
}
article.species-article h2:first-child { margin-top: 0; }
article.species-article figure { margin: 1.8rem 0; }
article.species-article figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
article.species-article figure.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
article.species-article figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
}

.facts-list { list-style: none; display: grid; gap: 0.9rem; margin-top: 1rem; }
.facts-list li {
  background: var(--card);
  border-radius: 12px;
  padding: 0.95rem 1.1rem 0.95rem 2.9rem;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
}
.facts-list li::before {
  content: "🐾";
  position: absolute;
  left: 0.95rem;
  top: 0.95rem;
  font-size: 1rem;
}

/* Паспорт вида */
.passport {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.6rem;
  position: sticky;
  top: 96px;
}
.passport h3 {
  font-size: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 0.9rem;
}
.passport dl { display: grid; gap: 0.75rem; }
.passport dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.passport dd { font-weight: 700; font-size: 0.97rem; }
.passport dd small { display: block; font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.status-badge {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--forest);
}
.status-badge.vu { background: #b4531f; }
.status-badge.en { background: #a12f2f; }

/* Навигация «предыдущий / следующий» */
.species-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  padding-bottom: 4.5rem;
}
.species-nav a {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.species-nav a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.species-nav .dir { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.3rem; }
.species-nav b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.species-nav .next { text-align: right; }

/* ---------------- Галерея ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 1.1rem;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 14, 0.85));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 16, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox .lb-cap { color: rgba(255, 255, 255, 0.85); margin-top: 1rem; font-size: 0.95rem; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

/* ---------------- О проекте ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-grid .img-frame { position: relative; }
.about-grid .img-frame img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}
.about-grid .img-frame::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 3px solid var(--honey);
  border-radius: var(--radius);
  z-index: -1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem;
  text-align: center;
}
.team-card .avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.team-card h3 { font-size: 1.15rem; }
.team-card .role { color: var(--amber-2); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin: 0.25rem 0 0.6rem; }
.team-card p { font-size: 0.9rem; color: var(--ink-soft); }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq details {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.4rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--amber-2); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; }

/* Форма подписки */
.subscribe {
  background: var(--forest);
  border-radius: 20px;
  padding: 2.6rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.subscribe h2 { color: #fff; font-size: 1.7rem; margin-bottom: 0.4rem; }
.subscribe p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.subscribe form { display: flex; gap: 0.7rem; }
.subscribe input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 0.95rem;
}
.subscribe input:focus { outline: none; border-color: var(--honey); }
.form-note { font-size: 0.78rem !important; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.5) !important; }

/* ---------------- Подвал ---------------- */
.site-footer {
  background: var(--forest-3);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.6rem 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.6rem;
  padding-bottom: 2.6rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.site-footer .logo { margin-bottom: 0.9rem; }
.site-footer p { max-width: 40ch; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a { color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: var(--honey); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------- Анимации появления ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- Адаптивность ---------------- */
@media (max-width: 1020px) {
  .species-grid, .features-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .timeline::before { display: none; }
  .species-layout { grid-template-columns: 1fr; }
  .passport { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .subscribe { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .burger { display: grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-3);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 4% 1.2rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  .main-nav.open { display: flex; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0 0.2rem 0.8rem;
    margin: 0.1rem 0 0.4rem;
  }
  .dropdown-menu a { color: rgba(255, 255, 255, 0.8); }
  .dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .species-grid, .features-grid, .team-grid, .gallery-grid { grid-template-columns: 1fr; }
  .species-nav { grid-template-columns: 1fr; }
  .species-nav .next { text-align: left; }
  .cta-box { flex-direction: column; text-align: center; padding: 2.6rem 1.6rem; }
  .subscribe form { flex-direction: column; }
  article.species-article figure.duo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
