/* Template 2 — «Golden Garden» · светлый ботанический */
:root {
  --accent: #b98a2f;          /* переопределяется из БД */
  --paper: #f7f2e7;
  --paper-soft: #fbf8f0;
  --ink: #33301f;
  --muted: #7c7660;
  --sage: #8a9a7b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Mulish', -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.eyebrow, .section-eyebrow {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--accent);
}
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.4rem 0 2.4rem; }

.leaf { position: absolute; font-size: 3.5rem; color: var(--sage); opacity: 0.5; pointer-events: none; }

/* ── Заглавие ── */
.hero {
  position: relative; text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(185,138,47,0.08), transparent 70%),
    var(--paper-soft);
  overflow: hidden;
}
.leaf-1 { top: 10%; left: 12%; transform: rotate(-18deg); }
.leaf-2 { bottom: 14%; right: 12%; transform: rotate(14deg); }
.names {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 11vw, 7rem);
  font-weight: 500; line-height: 1.02; margin: 1.2rem 0 1.4rem;
}
.hero-rule {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--serif); font-size: 1.3rem; color: var(--muted);
}
.hero-rule span { display: block; width: min(14vw, 90px); height: 1px; background: var(--accent); opacity: 0.6; }
.intro {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--muted); max-width: 34rem; margin: 1.6rem auto 0;
}

/* ── Секции ── */
section { padding: clamp(4rem, 9vw, 7rem) 1.5rem; text-align: center; }
.section-eyebrow { display: block; }

/* Галерея — «кладка» */
.gallery-section { background: var(--paper); }
.masonry {
  max-width: 1000px; margin: 0 auto;
  columns: 3 220px; column-gap: 1rem;
}
.masonry .gallery-item { break-inside: avoid; margin: 0 0 1rem; overflow: hidden; border-radius: 3px; }
.masonry .gallery-item img {
  width: 100%; display: block; border-radius: 3px;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.96);
}
.masonry .gallery-item:hover img { transform: scale(1.04); filter: saturate(1.05); }

/* Таймлайн */
.timeline-section { background: var(--paper-soft); }
.timeline { max-width: 560px; margin: 0 auto; text-align: left; position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--accent); opacity: 0.4; }
.tl-item { position: relative; padding: 0.9rem 0 0.9rem 1.4rem; }
.tl-item::before {
  content: ''; position: absolute; left: -1.6rem; top: 1.35rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.tl-time { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); font-weight: 600; }
.tl-label { color: var(--ink); font-size: 1.02rem; }

/* Место */
.venue-section { position: relative; background: var(--paper); }
.leaf-3 { top: 18%; left: 50%; transform: translateX(-50%); font-size: 2.4rem; }
.venue-name { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 3.4rem); margin: 0.6rem 0 0.4rem; }
.venue-date { color: var(--muted); letter-spacing: 0.08em; }

.tpl-foot { background: var(--sage); color: var(--paper-soft); text-align: center; padding: 3rem 1.5rem; }
.foot-names { font-family: var(--serif); font-style: italic; font-size: 2rem; }

/* Анимации — скрываем только при активном JS (html.js) */
html.js .anim, html.js .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .anim, .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  .masonry { columns: 2 140px; }
  .leaf { display: none; }
}
