/* Допомога поруч — військова гуманітарна допомога в Україні */
:root {
  --bg: #FDF8F3;
  --bg-2: #F7F1EA;
  --bg-card: #FFFFFF;
  --surface: rgba(44, 36, 25, 0.03);
  --surface-hover: rgba(44, 36, 25, 0.06);
  --border: rgba(44, 36, 25, 0.08);
  --text: #2C2419;
  --muted: #7A6D5E;
  --muted-2: #9A8E80;
  --accent: #C45A2C;
  --accent-2: #A84920;
  --accent-glow: rgba(196, 90, 44, 0.25);
  --gold: #7A8B4B;
  --gold-dim: #5F6F3B;
  --success: #4A9A6B;
  --danger: #C04040;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 56px rgba(44, 36, 25, 0.10);
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.025;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0 10px;
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}
.header--hero {
  background: linear-gradient(180deg, rgba(253, 248, 243, 0.92) 0%, transparent 100%);
}
.header--hero.scrolled,
.header.scrolled {
  background: rgba(253, 248, 243, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.header-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
}
.header-shell > .logo { grid-column: 1; justify-self: start; }
.header-shell > .nav { grid-column: 2; justify-self: center; }
.header-shell > .header-actions { grid-column: 3; justify-self: end; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
  flex-shrink: 0;
}
.logo-mark img, .logo-mark svg { width: 44px; height: 44px; display: block; }
.logo-accent { color: var(--accent); }
.logo-tagline {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.logo-name { display: flex; flex-direction: column; line-height: 1.15; }

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.nav-section { display: flex; align-items: center; gap: 6px; }
.nav-section--main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px;
}
.nav a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.nav-active {
  background: var(--surface-hover);
  color: var(--accent);
}
.header-subnav, .nav-section--pages { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 0.95rem; }

.btn-primary {
  color: #fff;
  background: var(--accent);
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); }

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--gold);
}
.btn-secondary:hover { background: rgba(139, 154, 93, 0.10); }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); }

.btn-video {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(44, 36, 25, 0.25);
  gap: 12px;
}
.btn-video:hover { border-color: rgba(44, 36, 25, 0.45); background: var(--surface); }
.btn-video__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(44, 36, 25, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  padding-left: 2px;
}

.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }

/* ---- Typography helpers ---- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head--left { text-align: left; margin-left: 0; margin-right: auto; max-width: 560px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2, .section-title-left {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text);
}
.section-title-left { text-transform: none; margin-bottom: 40px; }
.section-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 12px auto 0;
}
.section-head--left p { margin: 12px 0 0; }

/* ---- Footer ---- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; line-height: 1.6; }
.footer h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 10px; }
.footer a, .footer li { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { color: var(--muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }

.phone-copy {
  user-select: text;
  -webkit-user-select: text;
  cursor: pointer;
  transition: color 0.2s;
}
.phone-copy:hover { color: var(--accent); }

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 960px) {
  .header-shell { display: flex; justify-content: space-between; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 64px 0 0;
    background: var(--bg);
    padding: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .nav.is-open .nav-section--main { flex-direction: column; width: 100%; background: transparent; border: none; border-radius: 0; }
  .nav.is-open a { width: 100%; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid, .security-layout { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .header-actions .btn-secondary { display: none; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-head h2, .section-title-left { font-size: 1.5rem; }
  .btn-lg { width: 100%; max-width: 320px; }
}
