/* ============ ГумХаб — основний стиль ============ */

:root {
  --bg: #0b1020;
  --bg-2: #0e1530;
  --bg-3: #121a38;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1fa;
  --muted: #9aa3c0;
  --blue: #2f7dff;
  --blue-2: #5fa0ff;
  --gold: #ffd200;
  --green: #2fd67b;
  --red: #ff5d5d;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font: '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);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

a { color: var(--blue-2); text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(47, 125, 255, 0.4); }

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

.grad {
  background: linear-gradient(100deg, var(--blue-2) 0%, var(--blue) 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(120deg, var(--blue) 0%, #1d5fe0 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 125, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(47, 125, 255, 0.5); filter: brightness(1.08); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue); background: rgba(47, 125, 255, 0.08); }

.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--panel-2); }

.btn-gold {
  background: linear-gradient(120deg, #ffd200, #ffb700);
  color: #0b1020;
  box-shadow: 0 10px 30px rgba(255, 210, 0, 0.28);
}
.btn-gold:hover { box-shadow: 0 14px 40px rgba(255, 210, 0, 0.4); }

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

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.8); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   ГЕЙТ
========================================================= */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(47, 125, 255, 0.22), transparent 60%),
    radial-gradient(800px 500px at 90% 110%, rgba(255, 210, 0, 0.12), transparent 60%),
    var(--bg);
  overflow: auto;
}
.gate-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate-card {
  position: relative;
  width: min(440px, 94vw);
  background: rgba(18, 26, 56, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 32px 30px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: gateIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes gateIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }

.gate-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.gate-brand { font-family: var(--font-head); font-weight: 900; font-size: 21px; letter-spacing: 0.04em; }
.gate-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.gate-step { display: flex; flex-direction: column; gap: 14px; }
.gate-title { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3; }
.gate-text { color: var(--muted); font-size: 14px; line-height: 1.6; }
.gate-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  align-self: flex-start;
}
.gate-hint { font-size: 12.5px; color: var(--muted); text-align: center; }

/* --- Капча-пазл --- */
.captcha-box { display: flex; flex-direction: column; gap: 12px; }
.puzzle-track {
  position: relative;
  height: 128px;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0f22;
  border: 1px solid var(--line);
  touch-action: none;
}
.puzzle-stripes { position: absolute; inset: 0; display: flex; }
.puzzle-stripe { flex: 1; height: 100%; }
.puzzle-slot {
  position: absolute;
  top: 0;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.5) 0 8px, rgba(0,0,0,0.25) 8px 16px);
  border-left: 2px dashed rgba(255,255,255,0.35);
  border-right: 2px dashed rgba(255,255,255,0.35);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}
.puzzle-piece {
  position: absolute;
  top: 0;
  height: 100%;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.2s;
  z-index: 2;
}
.puzzle-piece.dragging { cursor: grabbing; z-index: 3; box-shadow: 0 6px 24px rgba(0,0,0,0.55); }
.puzzle-piece.placed { pointer-events: none; }
.puzzle-rail {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.puzzle-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  border-radius: 999px;
  opacity: 0.85;
}
.captcha-msg { font-size: 13.5px; min-height: 20px; text-align: center; color: var(--muted); }
.captcha-msg.error { color: var(--red); }
.captcha-msg.ok { color: var(--green); }

/* --- Геолокація --- */
.geo-icon {
  width: 92px; height: 92px;
  margin: 4px auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--blue-2);
  background: rgba(47, 125, 255, 0.12);
  border: 1.5px solid rgba(47, 125, 255, 0.4);
  animation: floaty 3s ease-in-out infinite;
}
.geo-icon.locating {
  color: var(--gold);
  border-color: rgba(255, 210, 0, 0.5);
  background: rgba(255, 210, 0, 0.1);
}
.geo-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.geo-preview-row { display: flex; justify-content: space-between; font-size: 14px; }
.geo-preview-row span { color: var(--muted); }
.geo-preview-row b { font-family: ui-monospace, Consolas, monospace; }
.geo-status { font-size: 13.5px; text-align: center; color: var(--muted); min-height: 20px; }
.geo-status.error { color: var(--red); }

/* --- Завантажувач / заблоковано --- */
.loader {
  width: 54px; height: 54px;
  margin: 6px auto;
  border-radius: 50%;
  border: 4px solid rgba(47, 125, 255, 0.2);
  border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}
.blocked-icon { color: var(--red); margin: 4px auto; }

/* =========================================================
   ШАПКА
========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--text); letter-spacing: 0.03em; }
.brand-text em { font-style: normal; color: var(--blue-2); }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav-cta { margin-left: auto; padding: 11px 22px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================= */
.hero { position: relative; padding: 84px 0 40px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }

.hero-title { font-family: var(--font-head); font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; }
.hero-sub { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 560px; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.trust-item { color: var(--muted); font-size: 14px; font-weight: 600; }

.hero-right { position: relative; height: 380px; }
.hero-card {
  position: absolute;
  width: min(250px, 70%);
  background: rgba(22, 32, 68, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.hero-card-1 { top: 6px; left: 2%; animation-delay: 0s; }
.hero-card-2 { top: 118px; right: 0; animation-delay: 1.4s; width: min(270px, 76%); }
.hero-card-3 { bottom: 2px; left: 10%; animation-delay: 2.6s; }
.hc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hc-icon { font-size: 26px; }
.hc-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-2);
  background: rgba(47, 125, 255, 0.14);
  border-radius: 999px; padding: 5px 12px;
}
.hc-name { font-weight: 800; font-size: 15.5px; }
.hc-meta { color: var(--muted); font-size: 12.5px; margin: 4px 0 12px; }
.hc-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.hc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--gold)); }

.stats {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding: 26px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(26px, 3vw, 38px); font-weight: 900; background: linear-gradient(120deg, var(--blue-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* =========================================================
   СЕКЦІЇ
========================================================= */
.section { padding: 92px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(18, 26, 56, 0.5), rgba(18, 26, 56, 0.15)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 14px;
}
.section-title { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.7; margin-top: 16px; }

/* --- Картки напрямків --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s ease, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47, 125, 255, 0.5); background: var(--panel-2); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }
.card-icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.card-tags span {
  font-size: 11.5px; font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* --- Про нас --- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.about-card:hover::before { opacity: 1; }
.about-num { font-family: var(--font-head); font-size: 44px; font-weight: 900; color: rgba(255,255,255,0.1); line-height: 1; margin-bottom: 18px; }
.about-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.about-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* --- Кроки --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  text-align: center;
  padding: 36px 24px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 24px; font-weight: 900;
  color: #0b1020;
  background: linear-gradient(135deg, var(--blue-2), var(--gold));
  border-radius: 20px;
  transform: rotate(8deg);
  box-shadow: 0 12px 30px rgba(47, 125, 255, 0.3);
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* --- Форма --- */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 44px;
  backdrop-filter: blur(10px);
}
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: rgba(10, 15, 34, 0.7);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 125, 255, 0.15);
}
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { background: var(--bg-3); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-status { font-size: 14.5px; text-align: center; min-height: 22px; font-weight: 700; }
.form-status.ok { color: var(--green); }
.form-status.error { color: var(--red); }
.form-note { color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.6; }

/* --- Донати --- */
.donate-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(120deg, rgba(47, 125, 255, 0.14), rgba(255, 210, 0, 0.08)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 52px;
}
.donate-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.donate-method { display: flex; align-items: center; gap: 14px; }
.donate-method > span { font-size: 26px; }
.donate-method b { display: block; font-size: 15px; }
.donate-method i { font-style: normal; color: var(--muted); font-size: 13.5px; font-family: ui-monospace, Consolas, monospace; }
.donate-aside { display: flex; flex-direction: column; gap: 24px; }
.donate-progress { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dp-head { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 700; }
.dp-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 14px 0 10px; }
.dp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.dp-meta { color: var(--muted); font-size: 13px; }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px; font-weight: 700;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 400;
  color: var(--blue-2);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item[open] summary { color: var(--blue-2); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 14.5px; line-height: 1.7; padding: 0 24px 22px; }

/* --- Футер --- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: rgba(8, 12, 26, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color 0.2s; }
.footer a:hover { color: var(--blue-2); }
.footer-about { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 14px 0 18px; max-width: 320px; }
.footer-note { display: block; color: var(--muted); font-size: 13px; margin-top: 14px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  font-size: 16px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  margin: 0;
}

/* =========================================================
   АДАПТИВ
========================================================= */
@media (max-width: 1024px) {
  .cards, .about-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .donate-card { grid-template-columns: 1fr; padding: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(11, 16, 32, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 22px; }
  .cards, .about-grid, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .section { padding: 64px 0; }
  .form-wrap { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .donate-card { padding: 26px 20px; }
}
