:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 60px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero Header */
header {
  background: linear-gradient(145deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  padding: 36px 0 32px;
  text-align: center;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 10%, transparent 60%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #93c5fd;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.subtitle {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 400;
  max-width: 420px;
  margin: 0 auto;
}

main {
  margin-top: -12px;
}

.section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}

.section-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* Banner Оголошення */
.alert-banner {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.status-pulse-wrap {
  padding-top: 5px;
}

.status-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  position: relative;
}

.status-pulse::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 1.8s infinite ease-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.alert-content {
  width: 100%;
}

.alert-title {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alert-desc {
  font-size: 13.5px;
  color: #334155;
  margin-top: 6px;
  line-height: 1.5;
}

.alert-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Слайдер новин */
.slider-controls {
  display: flex;
  gap: 6px;
}

.slider-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.slider-arrow:hover {
  background: var(--primary-light);
  border-color: #bfdbfe;
  color: var(--primary);
}

.slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-placeholder {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
  width: 100%;
}

.blog-item {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 540px) {
  .blog-item {
    flex: 0 0 calc(50% - 7px);
  }
}

.blog-item:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.blog-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.blog-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-item-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.blog-item-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

/* Gallery Card */
.gallery-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.gallery-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.gallery-desc {
  font-size: 13px;
  color: #475569;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.gallery-thumb {
  background: #e2e8f0;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 1px solid #cbd5e1;
}

.gallery-thumb svg {
  width: 24px;
  height: 24px;
}

.btn-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}

.btn-gallery:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Contact Row */
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .contact-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.contact-role-title {
  font-size: 15px;
  font-weight: 700;
}

.contact-role-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #dbeafe;
  transition: all 0.15s ease;
}

.contact-btn:hover {
  background: #dbeafe;
}

.contact-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-viber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #7360f2;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #6650eb;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(115, 96, 242, 0.2);
}

.btn-viber:hover {
  background: #5e47e8;
}

.btn-viber-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* Блок донату */
.donate-intro {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.donate-btn-wrap {
  margin-top: 14px;
}

.donate-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.req-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  margin: 14px 0 10px;
}

.iban-value {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  word-break: break-all;
  letter-spacing: 0.5px;
  text-align: center;
  background: #ffffff;
  padding: 12px 8px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  margin-bottom: 10px;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-privat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #73a922;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(115, 169, 34, 0.25);
  transition: background-color 0.15s ease, transform 0.1s ease;
  width: 100%;
  margin-bottom: 8px;
}

.btn-privat:hover {
  background: #629419;
  transform: translateY(-1px);
}

/* Карта */
.map-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Modal Reader */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
}

.modal-card {
  max-width: 620px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text);
}

.modal-meta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.35;
}

.modal-content p {
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 40px;
}
/* Навігаційне меню у шапці */
.header-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Активна вкладка сторінки */
.nav-link.active {
  background: #ffffff;
  color: #1e3a8a;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}