/* === Основные стили === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

/* === Верхняя панель === */
header .top-bar {
  background: #005fa3;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 5px 10px;
}

/* === Шапка сайта === */
header .header-main {
  display: flex;
  align-items: center;     
  justify-content: flex-start; /* логотип всегда слева */
  gap: 20px;
  background: rgba(0, 119, 204, 0.85);
  color: #fff;
  padding: 20px 30px;
  border-bottom: 8px solid #005fa3;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

/* === Логотип === */
.site-logo {
  height: 80px;   /* оптимальный размер для ПК и телефона */
  width: auto;
  flex-shrink: 0;
}

/* === Заголовок рядом с логотипом === */
header .logo h1 {
  margin: 0;
  color: #ffcc00;
  font-size: 28px; /* универсальный размер */
  font-weight: bold;
  text-align: left;
  line-height: 1.2;
}

header .logo h2 {
  margin: 0;
  font-size: 16px;
  text-align: left;
  color: #fff;
  line-height: 1.2;
}

/* === Контакты и кнопка === */
header .contacts a,
header .contacts .fund-btn {
  margin-left: 15px;
  color: #fff;
  text-decoration: none;
}

header .fund-btn {
  background: #00bfff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

/* === Секция мероприятий === */
.events {
  padding: 40px 20px;
  text-align: center;
}

.events h2 {
  margin-bottom: 30px;
  font-size: 28px;
  color: #ffcc00;
}

/* === Карточки мероприятий === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

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

.card h3 {
  margin-top: 0;
  color: #0077cc;
}

.card p {
  font-size: 14px;
  line-height: 1.4;
  text-align: justify; /* читаемо и на ПК, и на телефоне */
}

.card .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.card .btn:hover {
  background: #005fa3;
}

/* === Детальная страница мероприятия === */
.event-detail {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.event-detail h2 {
  color: #ffcc00;
}

.event-detail .gallery img {
  margin: 10px;
  border-radius: 8px;
}

/* === Подвал === */
footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  margin-top: 40px;
}

/* === Галерея фото === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  justify-items: center;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

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

/* === 📱 Адаптивность === */
@media (max-width: 768px) {
  header .header-main {
    justify-content: center;   /* центрируем весь блок */
    gap: 12px;
    padding: 15px;
  }

  .site-logo {
    height: 55px;
  }

  header .logo h1 {
    font-size: 22px;
    text-align: center;
  }

  header .logo h2 {
    font-size: 13px;
    text-align: center;
  }

  .card {
    padding: 15px;
  }

  .card p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  header .header-main {
    flex-wrap: wrap; /* перенос при очень узких экранах */
    text-align: center;
  }

  .events h2 {
    font-size: 22px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 12px;
  }
}

/* === 📱 ПОЖЕРТВОВАНИЕ === */
.donate-page {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.donate-page input {
  width: 80%;
  padding: 10px;
  margin: 15px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.donate-page .btn {
  display: block;
  margin: 10px auto;
  padding: 12px 20px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.2s;
  max-width: 300px;
}

.donate-page .btn:hover {
  background: #005fa3;
}

.qr-section {
  margin-top: 20px;
}

.qr-section img {
  width: 200px;
  margin: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
}
/* === 📱 БИБЛИЯ === */
.bible-quote {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  font-family: 'Georgia', serif;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf6e3, #e0f7fa);
  background-size: 400% 400%;
  animation: gradientShift 30s ease infinite;
  transition: all 1s ease-in-out;
}


}
body {font-family: 'Segoe UI', sans-serif; margin:0; background:#f9fafc; color:#333;}
header {text-align:center; padding:20px;}
.site-logo {height:80px;}
.cards {display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; padding:20px;}
.card {background:#fff; border-radius:15px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.1); text-align:center;}
.card h3 {margin-bottom:10px;}
.btn {background:#0077cc; color:white; padding:10px 20px; border-radius:25px; text-decoration:none; transition:0.3s;}
.btn:hover {background:#005fa3;}
.contact-info {text-align:center; background:#fff; padding:30px; border-radius:15px; box-shadow:0 2px 8px rgba(0,0,0,0.1);}
.phone-link {color:#0077cc; font-weight:bold; text-decoration:none;}
.phone-link:hover {text-decoration:underline;}
.back-btn {display:inline-block; margin-top:20px; background:linear-gradient(135deg,#0077cc,#00bfff); color:white; padding:10px 20px; border-radius:25px; text-decoration:none; font-weight:bold; transition:0.3s;}
.back-btn:hover {background:linear-gradient(135deg,#005fa3,#0099cc); transform:translateY(-2px);}
