:root {
  --ink: #1d241f;
  --ink-soft: #5d665f;
  --green: #173d2c;
  --green-2: #22543d;
  --green-3: #eaf0eb;
  --gold: #b68a3a;
  --gold-2: #d6b76f;
  --paper: #f7f2e7;
  --paper-2: #efe5d1;
  --white: #ffffff;
  --line: rgba(29, 36, 31, .12);
  --shadow: 0 28px 70px rgba(20, 31, 24, .14);
  --radius: 28px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(182, 138, 58, .08), transparent 28rem),
    #fbfaf6;
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: #d9c38f; color: #14271c; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 108px 0; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 999; padding: 10px 14px; border-radius: 10px; background: #fff; }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(18, 48, 34, .94);
  box-shadow: 0 8px 30px rgba(10, 23, 16, .18);
  backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,.08);
}
.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.brand span { display: grid; line-height: 1.12; }
.brand strong { font-family: var(--serif); font-size: 18px; letter-spacing: .2px; }
.brand small { margin-top: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.67); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 650; font-size: 14px; transition: color .2s ease; }
.main-nav a:hover { color: white; }
.main-nav .nav-tree { padding: 10px 14px; border: 1px solid rgba(214,183,111,.65); border-radius: 999px; color: #f5d894; }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: white; border-radius: 2px; }

.hero { min-height: 760px; height: min(880px, 100svh); position: relative; display: grid; align-items: center; overflow: hidden; background: #173d2c; color: white; }
.hero-media { position: absolute; inset: 0; background: url('/assets/img/hero-church.webp?v=20260819-1') center 43% / cover no-repeat; transform: scale(1.035); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,36,25,.94) 0%, rgba(14,36,25,.82) 38%, rgba(14,36,25,.40) 67%, rgba(14,36,25,.58) 100%), linear-gradient(0deg, rgba(7,24,16,.56), transparent 44%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(to top, rgba(9,23,16,.72), transparent); pointer-events: none; }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 80px; align-items: center; padding-top: 70px; }
.hero-copy { max-width: 780px; }
.eyebrow, .section-kicker { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--gold); }
.hero .eyebrow { color: #f0cf85; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 6.8vw, 96px); line-height: .96; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 10px 40px rgba(0,0,0,.28); }
.hero h1 span { color: #f0cf85; }
.hero-lead { max-width: 730px; margin: 26px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 14px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #d7b76e; color: #173024; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn-primary:hover { background: #e4c77f; }
.btn-ghost { border: 1px solid rgba(255,255,255,.38); color: white; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.btn-gold { background: #d6b76f; color: #173024; }

.countdown-card { padding: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 26px; background: rgba(13,35,24,.45); box-shadow: 0 20px 70px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.countdown-label { margin: 0 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.countdown div { padding: 12px 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; text-align: center; background: rgba(255,255,255,.06); }
.countdown strong { display: block; font-family: var(--serif); font-size: 32px; line-height: 1; color: #f0cf85; }
.countdown span { display: block; margin-top: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.62); }
.date-seal { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.date-seal > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #f2d58f; color: #173d2c; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.date-seal div { display: grid; }
.date-seal strong { font-size: 13px; letter-spacing: .14em; }
.date-seal small { margin-top: 2px; color: rgba(255,255,255,.62); }
.scroll-cue { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: white; text-decoration: none; opacity: .75; }

.intro { background: linear-gradient(180deg, #fbfaf6 0%, #f7f1e5 100%); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .88fr); gap: 56px; align-items: center; }
.intro-copy h2, .section-head h2, .genealogy h2, .contact h2 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.intro-copy h2 { font-size: clamp(42px, 5vw, 68px); max-width: 760px; }
.intro-copy > p:not(.section-kicker) { color: var(--ink-soft); font-size: 17px; max-width: 760px; }
.intro-highlights { display: flex; gap: 34px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.intro-highlights div { display: grid; }
.intro-highlights strong { font-family: var(--serif); font-size: 25px; color: var(--green); }
.intro-highlights span { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
.poster-card { margin: 0; position: relative; width: 100%; max-width: 500px; justify-self: center; padding: 12px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); transform: rotate(.6deg); }
.poster-card img { width: 100%; height: auto; aspect-ratio: 858 / 1280; object-fit: contain; border-radius: 18px; }
.poster-card figcaption { padding: 10px 4px 2px; text-align: center; font-family: var(--serif); color: #6a5d49; font-size: 13px; }

.program { background: #fff; }
.section-head { max-width: 760px; margin-bottom: 58px; }
.section-head h2 { font-size: clamp(40px, 5vw, 66px); }
.section-head > p:last-child { max-width: 700px; color: var(--ink-soft); font-size: 17px; }
.timeline { position: relative; max-width: 980px; margin: auto; }
.timeline::before { content: ''; position: absolute; top: 22px; bottom: 22px; left: 132px; width: 1px; background: linear-gradient(var(--gold), rgba(182,138,58,.15)); }
.timeline-item { display: grid; grid-template-columns: 95px 76px 1fr; gap: 0; align-items: start; margin: 0 0 32px; }
.time { padding-top: 21px; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--green); }
.timeline-dot { position: relative; display: grid; place-items: center; padding-top: 12px; }
.timeline-dot span { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1px solid rgba(182,138,58,.55); color: #9b712b; font-family: var(--serif); font-weight: 700; box-shadow: 0 0 0 8px #fff; }
.timeline-card { padding: 26px 30px; border: 1px solid var(--line); border-radius: 22px; background: #fbfaf7; }
.timeline-card-featured { background: linear-gradient(145deg, #f8f1e1, #fcfbf8); border-color: rgba(182,138,58,.28); }
.timeline-type { margin: 0 0 6px; color: #9b712b; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.timeline-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 27px; line-height: 1.16; }
.timeline-card p { margin: 0 0 12px; color: var(--ink-soft); }
.text-link { display: inline-block; margin-top: 2px; color: var(--green); font-weight: 800; text-decoration: none; font-size: 13px; }
.text-link:hover { text-decoration: underline; }

.genealogy { padding-top: 34px; background: #fff; }
.genealogy-card { position: relative; overflow: hidden; min-height: 460px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; border-radius: 36px; background:
  radial-gradient(circle at 85% 50%, rgba(214,183,111,.15), transparent 25rem),
  linear-gradient(135deg, #0f3323, #1f5139 70%, #173d2c); color: white; box-shadow: 0 34px 80px rgba(15,51,35,.20); }
.genealogy-card::before { content: ''; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, black); }
.genealogy-copy { position: relative; z-index: 2; padding: 60px 0 60px 60px; }
.section-kicker.light { color: #e7c980; }
.genealogy h2 { font-size: clamp(38px, 4.7vw, 62px); max-width: 650px; }
.genealogy-copy > p:not(.section-kicker,.genealogy-note) { max-width: 650px; color: rgba(255,255,255,.75); font-size: 17px; }
.genealogy-note { max-width: 650px; margin: 18px 0 0; font-size: 12px; color: rgba(255,255,255,.58); }
.genealogy-logo { position: relative; z-index: 1; align-self: stretch; display: grid; place-items: center; padding: 34px; }
.genealogy-logo img { width: min(580px, 100%); filter: drop-shadow(0 24px 34px rgba(0,0,0,.24)); }

.details { background: linear-gradient(#fff, #f5efe3); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 30px; border: 1px solid rgba(29,36,31,.1); border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: 0 18px 40px rgba(30,40,32,.07); }
.info-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--green-3); color: var(--green); font-weight: 800; }
.info-card h3 { margin: 18px 0; font-family: var(--serif); font-size: 25px; }
.info-card p { color: var(--ink-soft); }
.price-list { display: grid; gap: 0; }
.price-list div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.price-list span { color: var(--ink-soft); }
.price-list strong { white-space: nowrap; }
.bank-card { background: #173d2c; color: white; border-color: transparent; }
.bank-card .info-icon { background: rgba(255,255,255,.12); color: #f1d18a; }
.bank-card p { color: rgba(255,255,255,.72); }
.account-owner { margin-bottom: 12px; }
.account-number { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.08); color: #f5e2b0; cursor: pointer; text-align: left; font-size: 13px; letter-spacing: .02em; }
.account-number span { font-size: 10px; color: rgba(255,255,255,.58); text-transform: uppercase; letter-spacing: .1em; }
.notice { padding: 12px 14px; border-radius: 14px; background: rgba(214,183,111,.12); border: 1px solid rgba(214,183,111,.2); font-size: 12px; }
.check-list { padding: 0; margin: 0 0 18px; list-style: none; display: grid; gap: 10px; color: var(--ink-soft); }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 900; }

.gallery { background: #f5efe3; }
.gallery-grid { display: grid; grid-template-columns: .8fr 1.4fr .8fr; gap: 20px; align-items: stretch; }
.gallery-item { position: relative; min-height: 440px; padding: 0; overflow: hidden; border: 0; border-radius: 26px; background: #ddd; cursor: zoom-in; box-shadow: 0 18px 44px rgba(36,42,36,.11); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item.portrait img { object-position: center 25%; }
.gallery-item.landscape img { object-position: center center; }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,29,20,.72), transparent 42%); }
.gallery-item span { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: white; text-align: left; font-family: var(--serif); font-size: 22px; }
.gallery-item:hover img { transform: scale(1.025); }

.contact { padding-top: 90px; padding-bottom: 90px; background: #122f22; color: white; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact h2 { font-size: clamp(38px, 4.8vw, 62px); }
.contact-wrap > div:first-child > p:last-child { color: rgba(255,255,255,.66); max-width: 610px; }
.contacts { display: grid; gap: 12px; }
.contacts a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.055); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.contacts a:hover { transform: translateX(3px); background: rgba(255,255,255,.09); }
.contacts span { color: rgba(255,255,255,.62); font-size: 13px; }
.contacts strong { color: #f0d28d; }

.site-footer { background: #0c2118; color: rgba(255,255,255,.66); padding: 34px 0; }
.footer-wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand div { display: grid; }
.footer-brand strong { color: white; font-family: var(--serif); }
.footer-brand span { font-size: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: white; }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }

.lightbox { max-width: min(1000px, 94vw); max-height: 94vh; padding: 10px; border: 0; border-radius: 20px; background: #111; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox::backdrop { background: rgba(4,12,8,.86); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: calc(94vh - 20px); border-radius: 12px; }
.lightbox-close { position: fixed; top: 18px; right: 22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.26); background: rgba(0,0,0,.5); color: white; font-size: 28px; cursor: pointer; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: #102f21; color: white; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.18); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: 760px; height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 36px; padding: 150px 0 90px; }
  .countdown-card { max-width: 420px; }
  .hero-shade { background: linear-gradient(90deg, rgba(14,36,25,.93), rgba(14,36,25,.72)), linear-gradient(0deg, rgba(7,24,16,.6), transparent); }
  .intro-grid { grid-template-columns: 1fr; gap: 42px; }
  .poster-card { max-width: 430px; }
  .genealogy-card { grid-template-columns: 1fr; }
  .genealogy-copy { padding: 52px 42px 18px; }
  .genealogy-logo { padding: 10px 42px 46px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card:last-child { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:last-child { grid-column: 1 / -1; min-height: 520px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .section { padding: 80px 0; }
  .nav-wrap { height: 72px; }
  .brand strong { font-size: 16px; }
  .brand small { display: none; }
  .brand img { width: 46px; height: 46px; }
  .menu-toggle { display: flex; }
  .main-nav { position: absolute; top: 72px; left: 14px; right: 14px; display: none; padding: 14px; border-radius: 18px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(15,46,32,.98); box-shadow: 0 24px 60px rgba(0,0,0,.24); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav .nav-tree { margin-top: 6px; text-align: center; }
  .hero-content { padding-top: 126px; padding-bottom: 82px; }
  .hero h1 { font-size: clamp(46px, 13vw, 68px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .countdown-card { width: 100%; }
  .intro-highlights { gap: 20px; flex-wrap: wrap; }
  .timeline::before { left: 23px; }
  .timeline-item { grid-template-columns: 48px 1fr; }
  .time { grid-column: 2; padding: 0 0 8px; font-size: 22px; }
  .timeline-dot { grid-column: 1; grid-row: 1 / span 2; padding-top: 0; justify-content: start; }
  .timeline-dot span { width: 36px; height: 36px; box-shadow: 0 0 0 6px #fff; }
  .timeline-card { grid-column: 2; padding: 22px; }
  .timeline-card h3 { font-size: 23px; }
  .genealogy { padding-top: 18px; }
  .genealogy-card { border-radius: 28px; }
  .genealogy-copy { padding: 42px 24px 10px; }
  .genealogy-logo { padding: 8px 20px 34px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card:last-child { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:last-child { grid-column: auto; min-height: 470px; }
  .contacts a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .footer-note { grid-column: auto; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 22px); }
  .countdown-card { padding: 22px 18px; }
  .countdown strong { font-size: 27px; }
  .intro-highlights div { min-width: calc(50% - 10px); }
  .gallery-item, .gallery-item:last-child { min-height: 420px; }
  .account-number { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
