@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f4f0eb;
  --surface:   #ffffff;
  --surface2:  #faf7f4;
  --border:    #e8e1d9;
  --text:      #3a3530;
  --text-soft: #7a726a;
  --accent:    #8b7355;
  --accent-lt: #c4a882;
  --green:     #5a9e7a;
  --green-lt:  #e8f5ee;
  --shadow:    0 4px 24px rgba(90,70,50,.09);
  --radius:    18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── HEADER ────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(90,70,50,.06);
}
header .dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(1.4); }
}
header span {
  font-size: .85rem;
  color: var(--text-soft);
  font-weight: 500;
}
header strong { color: var(--text); }

/* ── HERO ──────────────────────────────────── */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-left .tag {
  display: inline-block;
  background: #f0ece6;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero-left h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text);
}
.hero-left h1 span { color: var(--accent); }
.hero-left .dob {
  font-size: .95rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}

/* ── CARD RIGHT ─────────────────────────────── */
.hero-right .card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-right .card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.amount-goal {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.amount-goal span { color: var(--accent); }

.progress-wrap { margin-bottom: 10px; }
.progress-bar-bg {
  background: var(--border);
  border-radius: 99px;
  height: 14px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), #82c8a0);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  width: 0%;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-soft);
  margin-top: 8px;
  margin-bottom: 20px;
}
.progress-meta strong { color: var(--green); font-weight: 700; }

.collected-row {
  background: var(--green-lt);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.collected-row .amount {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--green);
}
.collected-row .label {
  font-size: .83rem;
  color: #4a8a6a;
}
.collected-row .label .date-today { font-weight: 700; }

.btn-wa,
.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-wa svg,
.btn-pay svg { flex-shrink: 0; }

.btn-wa {
  background: #25d366;
  box-shadow: 0 4px 18px rgba(37,211,102,.28);
}
.btn-wa:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.38);
}

.btn-pay {
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(139,115,85,.28);
  margin-top: 10px;
}
.btn-pay:hover {
  background: #7a6248;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,115,85,.38);
}

/* ── SECTIONS ───────────────────────────────── */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

/* ── VIDEO ──────────────────────────────────── */
.video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.video-player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  cursor: pointer;
  line-height: 0;
}

/* Кнопка Play — поверх видео по центру */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.45));
  z-index: 2;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.play-btn svg {
  width: 100%;
  height: 100%;
}

/* Когда видео запущено — скрываем кнопку */
.video-player.playing .play-btn {
  display: none;
}

/* Видео занимает всю ширину */
.video-player video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ── GALLERY ────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(90,70,50,.10);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(90,70,50,.18);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── LIGHTBOX ───────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,15,10,.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 26px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  background: rgba(255,255,255,.12);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  user-select: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── PAYMENT ────────────────────────────────── */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.pay-card .bank-logo {
  height: 32px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}
.pay-card .bank-name {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.copy-row .label {
  font-size: .75rem;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  min-width: 60px;
}
.copy-row .value {
  flex: 1;
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--surface2);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.btn-copy {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 13px;
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-copy:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-copy.copied {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pay-note {
  font-size: .8rem;
  color: var(--text-soft);
  background: var(--surface2);
  border-left: 3px solid var(--accent-lt);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin-top: 16px;
  line-height: 1.5;
}
.pay-note strong { color: var(--accent); }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  font-size: .82rem;
  color: var(--text-soft);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
    gap: 32px;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
