/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: #2d5a27;
}

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

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ===== HEADER ===== */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5a27;
}

.logo span {
  color: #40e0d0;
}

/* NAVIGATION */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #40e0d0;
}

/* Кнопка "Поддержать" */
.btn-donate {
  background-color: #40e0d0;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.btn-donate:hover {
  background-color: #2d5a27;
}

/* Бургер-меню (скрыто на десктопе) */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: #2d5a27;
  transition: 0.3s;
}

/* ===== FOOTER ===== */
footer {
  background-color: #2d5a27;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #40e0d0;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  background-color: #40e0d0;
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
}

.btn:hover {
  background-color: #2d5a27;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/photo-1464822759023-fed622ff2c3b.jpeg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== КАРТОЧКИ РАЗДЕЛОВ ===== */
.section-title {
  text-align: center;
  margin: 2rem 0;
  color: #2d5a27;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: #2d5a27;
  margin-bottom: 0.5rem;
}

/* ===== ФОРМА ПОДПИСКИ ===== */
.newsletter {
  background-color: #8fbc8f;
  padding: 3rem 0;
  text-align: center;
  color: #fff;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  outline: none;
}

.newsletter-form button {
  background-color: #2d5a27;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #40e0d0;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  transition: transform 0.3s;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== ЛАЙТБОКС ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* ===== ФАКТЫ ===== */
.facts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.fact-item {
  background: #f0f0f0;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
    padding: 0 1rem;
  }
}

/* Исправление для меню */
.header-content {
  display: flex;
  align-items: center;
/*  justify-content: space-between;*/
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
  }
}

