:root {
  color-scheme: light;
  --bg: #f7f0e3;
  --bg-deep: #efe2cb;
  --paper: #fffaf1;
  --paper-strong: #fffdf8;
  --ink: #3b2a22;
  --ink-soft: #65554b;
  --muted: #87776a;
  --gold: #b8892e;
  --gold-soft: #d8bb76;
  --gold-pale: #f1dfb0;
  --green: #1f6b4a;
  --green-deep: #184f37;
  --red: #8c3b2f;
  --line: rgba(90, 64, 43, 0.16);
  --line-strong: rgba(90, 64, 43, 0.28);
  --shadow: 0 24px 80px rgba(67, 45, 27, 0.12);
  --shadow-soft: 0 12px 35px rgba(67, 45, 27, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --serif: "Palatino Linotype", "Book Antiqua", Baskerville, "Times New Roman", Georgia, serif;
  --sans: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --page-gutter: clamp(1rem, 4vw, 4.5rem);
  --content-max: 1240px;
  --tibeb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Crect width='120' height='16' fill='none'/%3E%3Cg fill='none' stroke='%23b8892e' stroke-width='1.4'%3E%3Cpath d='M0 8h12l4-4 4 4 4-4 4 4h12l4-4 4 4 4-4 4 4h12l4-4 4 4 4-4 4 4h12l4-4 4 4 4-4 4 4h12'/%3E%3Cpath d='M0 8h12l4 4 4-4 4 4 4-4h12l4 4 4-4 4 4 4-4h12l4 4 4-4 4 4 4-4h12l4 4 4-4 4 4 4-4h12' opacity='.55'/%3E%3C/g%3E%3Cg fill='%238c3b2f'%3E%3Crect x='18' y='7' width='2' height='2' transform='rotate(45 19 8)'/%3E%3Crect x='58' y='7' width='2' height='2' transform='rotate(45 59 8)'/%3E%3Crect x='98' y='7' width='2' height='2' transform='rotate(45 99 8)'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(241, 223, 176, 0.35), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(31, 107, 74, 0.06), transparent 20%),
    linear-gradient(180deg, #fbf6ed 0%, var(--bg) 45%, #f3e8d3 100%);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; }
p, h1, h2, h3 { overflow-wrap: break-word; }
::selection { background: rgba(184, 137, 46, 0.28); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(31, 107, 74, 0.45); outline-offset: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.8rem 1rem;
  background: var(--green-deep);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transition: top .25s ease;
}
.skip-link:focus { top: 1rem; }

.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.ambient-orb--a { width: 28rem; height: 28rem; top: -8rem; left: -6rem; background: radial-gradient(circle, rgba(216,187,118,.35), transparent 68%); }
.ambient-orb--b { width: 22rem; height: 22rem; top: 35%; right: -8rem; background: radial-gradient(circle, rgba(31,107,74,.12), transparent 70%); animation-duration: 22s; }
.ambient-orb--c { width: 18rem; height: 18rem; bottom: 8%; left: 15%; background: radial-gradient(circle, rgba(140,59,47,.08), transparent 72%); animation-duration: 20s; }
.ambient-thread {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184,137,46,.18), transparent);
}
.ambient-thread--left { left: clamp(0.75rem, 2vw, 2rem); }
.ambient-thread--right { right: clamp(0.75rem, 2vw, 2rem); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--page-gutter);
  background: rgba(251, 246, 237, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 137, 46, 0.18);
  box-shadow: 0 4px 24px rgba(59, 42, 34, 0.04);
}
.header-branding, .header-actions, .top-nav, .language-switch { display: flex; align-items: center; }
.header-branding { gap: 0.85rem; min-width: 0; }
.header-logo {
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, var(--gold-pale), rgba(184,137,46,.25));
  box-shadow: 0 8px 24px rgba(59,42,34,.08);
}
.header-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; }
.couple-mark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.mark-letters {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.mark-letters span { color: var(--gold); margin: 0 0.15em; }
.mark-caption {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-actions { gap: 1rem; }
.top-nav { gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.top-nav a:hover, .top-nav a:focus-visible { color: var(--green-deep); background: rgba(31,107,74,.07); transform: translateY(-1px); }
.language-switch {
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255,250,241,.9);
  border: 1px solid rgba(184,137,46,.2);
}
.language-switch button {
  min-width: 44px;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: all .25s ease;
}
.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 8px 18px rgba(31,107,74,.28);
}

.section-wrap { width: min(calc(100% - 2 * var(--page-gutter)), var(--content-max)); margin-inline: auto; }
.section-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}
.section-kicker--center { text-align: center; }

.hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: clip;
}
.hero-pattern {
  height: 18px;
  width: min(calc(100% - 2rem), 1400px);
  margin: 0 auto;
  background-image: var(--tibeb);
  background-repeat: repeat-x;
  background-position: center;
  opacity: .95;
}
.hero-pattern--top { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero-pattern--bottom { margin-top: clamp(2rem, 4vw, 3.5rem); }
.hero-inner {
  width: min(calc(100% - 2 * var(--page-gutter)), 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; padding: clamp(0.5rem, 2vw, 1.5rem) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255,250,241,.72);
  border: 1px solid rgba(184,137,46,.2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.eyebrow-ornament {
  width: 2.5rem; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(184,137,46,0));
}
.eyebrow-dot { color: var(--gold); font-size: 0.7rem; }
.hero-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--green);
  letter-spacing: 0.03em;
}
.hero h1 { margin: 0; line-height: 0.95; }
.hero-lead, .hero-highlight { display: block; }
.hero-lead {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.hero-highlight {
  margin-top: 0.35rem;
  max-width: 11ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--green-deep);
}
.hero-names {
  margin: 1.5rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  color: var(--red);
  letter-spacing: 0.01em;
}
.hero-blessing {
  max-width: 38rem;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem 0.85rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 14px 30px rgba(31,107,74,.25);
  font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease;
}
.scroll-link:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(31,107,74,.3); }
.scroll-icon {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  font-size: 1rem;
}
.hero-seal {
  position: relative;
  width: 108px; height: 108px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.1rem;
  color: var(--ink);
  background: radial-gradient(circle at 30% 30%, #fffdf7, #f0dfbd 75%);
  border: 1px solid rgba(184,137,46,.45);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.55), 0 12px 30px rgba(59,42,34,.12);
  animation: sealPulse 5s ease-in-out infinite;
}
.hero-seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px dashed rgba(140,59,47,.35);
}
.hero-seal span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }
.hero-seal strong { font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--red); font-weight: 600; }

.hero-photo { position: relative; margin: 0; }
.photo-mat {
  position: relative;
  padding: 1rem;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(160deg, rgba(255,252,246,.95), rgba(239,226,203,.95));
  box-shadow: var(--shadow);
  border: 1px solid rgba(184,137,46,.22);
}
.photo-mat::before, .photo-mat::after {
  content: "";
  position: absolute;
  width: 74px; height: 74px;
  border-color: rgba(184,137,46,.55);
  border-style: solid;
  pointer-events: none;
}
.photo-mat::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; border-radius: 18px 0 0 0; }
.photo-mat::after { right: 14px; bottom: 14px; border-width: 0 2px 2px 0; border-radius: 0 0 18px 0; }
.photo-mat-inner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  isolation: isolate;
}
.photo-mat-inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(59,42,34,.12));
  pointer-events: none;
}
.photo-mat-inner img {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.hero-photo:hover .photo-mat-inner img { transform: scale(1.025); }
.photo-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0 0.5rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}
.legend-rule { flex: 0 0 48px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(184,137,46,0)); }

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  color: var(--gold);
}
.ornament-divider span {
  height: 1px;
  width: min(180px, 28vw);
  background: linear-gradient(90deg, transparent, rgba(184,137,46,.65), transparent);
}
.ornament-divider i { font-style: normal; font-size: 1rem; color: var(--red); transform: rotate(45deg); display: inline-block; }

.blessing-section { padding: clamp(2rem, 4vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem); position: relative; }
.blessing-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.blessing-photo { margin: 0; }
.blessing-frame {
  position: relative;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,252,246,.96), rgba(239,226,203,.9));
  border: 1px solid rgba(184,137,46,.2);
  box-shadow: var(--shadow-soft);
}
.blessing-frame::before {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
  z-index: 1;
}
.blessing-frame img {
  width: 100%;
  aspect-ratio: 4 / 5.3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
}
.blessing-copy h2, .thank-you-shell h2, .memories-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.blessing-copy h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); max-width: 11ch; }
.blessing-lead {
  margin: 1.4rem 0 1rem;
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink);
  max-width: 42rem;
}
.blessing-copy p { color: var(--ink-soft); line-height: 1.9; }
.blessing-copy > p:last-of-type { margin: 0; max-width: 42rem; font-size: 1rem; }
.blessing-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.value-card {
  padding: 1.2rem 1rem;
  border-radius: 20px;
  background: rgba(255,250,241,.72);
  border: 1px solid rgba(184,137,46,.16);
  box-shadow: 0 8px 24px rgba(59,42,34,.04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(59,42,34,.08); border-color: rgba(184,137,46,.3); }
.value-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(184,137,46,.1);
  font-size: 0.8rem;
}
.value-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green-deep);
}
.value-card p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); }

.thank-you-section {
  padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}
.thank-you-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255,251,245,.96), rgba(244,232,211,.92));
  border: 1px solid rgba(184,137,46,.22);
  box-shadow: var(--shadow);
}
.thank-you-shell::before, .thank-you-shell::after {
  content: "";
  position: absolute;
  left: 1.25rem; right: 1.25rem;
  height: 14px;
  background-image: var(--tibeb);
  background-repeat: repeat-x;
  background-position: center;
  opacity: .85;
}
.thank-you-shell::before { top: 1rem; }
.thank-you-shell::after { bottom: 1rem; }
.thank-you-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(216,187,118,.18), transparent 34%),
    radial-gradient(circle at 10% 80%, rgba(31,107,74,.05), transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(140,59,47,.05), transparent 20%);
  pointer-events: none;
}
.thank-you-shell h2 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); position: relative; }
.thank-you-message {
  position: relative;
  max-width: 48rem;
  margin: 1.4rem auto 0;
  font-size: 1.08rem;
  line-height: 2;
  color: var(--ink-soft);
}
.signature-block {
  position: relative;
  margin-top: 2rem;
  padding-top: 1.5rem;
}
.signature-rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.signature-block p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.signature-block strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--red);
}

.memories-section { padding: clamp(2rem, 4vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem); }
.memories-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.memories-heading h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 12ch; }
.memories-note { margin: 0; font-size: 1rem; line-height: 1.9; color: var(--ink-soft); }

.gallery-carousel { position: relative; padding: 0 0 1rem; }
.gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.75rem max(var(--page-gutter), calc((100vw - var(--content-max)) / 2)) 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-grid::-webkit-scrollbar { display: none; }
.photo-card {
  position: relative;
  scroll-snap-align: center;
  padding: 0.65rem;
  border: 1px solid rgba(184,137,46,.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,252,246,.98), rgba(243,232,211,.88));
  box-shadow: 0 14px 30px rgba(59,42,34,.07);
  cursor: pointer;
  text-align: left;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.photo-card:hover, .photo-card:focus-visible, .photo-card.is-active {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(59,42,34,.14);
  border-color: rgba(184,137,46,.38);
}
.photo-frame {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #e8dcc8;
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .8s ease, filter .8s ease;
}
.photo-card:hover .photo-frame img, .photo-card:focus-visible .photo-frame img { transform: scale(1.045); filter: saturate(1.03); }
.photo-caption {
  display: block;
  padding: 0.95rem 0.4rem 0.2rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}
.photo-open {
  position: absolute;
  top: 1.15rem; right: 1.15rem;
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,250,241,.92);
  color: var(--green-deep);
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(59,42,34,.12);
  transition: transform .3s ease, background .3s ease;
}
.photo-card:hover .photo-open { transform: scale(1.06); background: #fff; }

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.gallery-arrow, .gallery-toggle {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(184,137,46,.26);
  background: rgba(255,250,241,.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  display: grid; place-items: center;
  transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(59,42,34,.05);
}
.gallery-arrow:hover:not(:disabled), .gallery-toggle:hover { background: var(--green-deep); color: #fff; border-color: var(--green-deep); transform: translateY(-1px); }
.gallery-arrow:disabled { opacity: .38; cursor: default; }
.gallery-toggle[aria-pressed="false"] { color: var(--green-deep); }

.telegram-cta-wrap { display: flex; justify-content: center; padding: 1.5rem var(--page-gutter) 0; }
.telegram-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--green-deep);
  background: rgba(255,250,241,.75);
  border: 1px solid rgba(31,107,74,.22);
  transition: all .3s ease;
}
.telegram-cta:hover { background: rgba(31,107,74,.08); transform: translateY(-2px); }

.site-footer {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.25rem;
  background: linear-gradient(180deg, rgba(239,226,203,.45), rgba(232,214,184,.75));
  border-top: 1px solid rgba(184,137,46,.2);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background-image: var(--tibeb);
  background-repeat: repeat-x;
  opacity: .8;
}
.footer-inner {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: start;
}
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.brand-logo-card {
  width: 82px; height: 82px; flex: 0 0 auto;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-pale), rgba(184,137,46,.25));
}
.brand-logo-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; }
.footer-kicker { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); }
.footer-brand-copy h2 { margin: 0.35rem 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
.footer-brand-copy p { margin: 0; color: var(--ink-soft); }
.footer-contact h3 { margin: 0 0 0.6rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.footer-location, .footer-hours { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }
.footer-hours { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 1rem; }
.footer-hours strong { color: var(--ink); font-size: 0.95rem; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.contact-link {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255,250,241,.58);
  border: 1px solid rgba(184,137,46,.14);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.contact-link:hover { transform: translateY(-2px); border-color: rgba(184,137,46,.3); background: rgba(255,250,241,.88); }
.contact-symbol {
  width: 2rem; height: 2rem; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(31,107,74,.08);
  color: var(--green-deep);
  font-size: 0.9rem;
}
.contact-symbol--text { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em; }
.contact-link small { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-link strong { display: block; margin-top: 0.15rem; font-size: 0.88rem; color: var(--ink); font-weight: 600; word-break: break-word; }
.footer-bottom {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-max));
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(90,64,43,.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--green-deep); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

.lightbox {
  width: min(96vw, 1100px);
  max-height: calc(100dvh - 2rem);
  border: 1px solid rgba(184,137,46,.2);
  border-radius: 24px;
  padding: 1rem;
  background: linear-gradient(180deg, #fffaf1, #f3e7d1);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
.lightbox::backdrop { background: rgba(44, 30, 22, 0.62); backdrop-filter: blur(6px); }
.lightbox-topline, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox-caption { margin: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.lightbox-close, .lightbox-step {
  border: 1px solid rgba(184,137,46,.24);
  background: rgba(255,250,241,.9);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}
.lightbox-close { width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lightbox-step { padding: 0.7rem 1rem; font-weight: 600; }
.lightbox-close:hover, .lightbox-step:hover { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.lightbox-photo-wrap {
  margin: 1rem 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(59,42,34,.06);
  display: grid;
  place-items: center;
  min-height: 280px;
}
.lightbox-photo-wrap img { max-height: calc(100dvh - 14rem); width: auto; max-width: 100%; }
.lightbox-count { font-size: 0.92rem; color: var(--muted); font-weight: 600; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(0, 18px, 0) scale(1.04); }
}
@keyframes sealPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-2deg) scale(1.02); }
}

@media (max-width: 1024px) {
  .hero-inner, .blessing-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-highlight { max-width: 12ch; }
  .photo-mat-inner img { aspect-ratio: 4 / 4.7; }
  .blessing-copy h2 { max-width: 14ch; }
  .memories-heading { grid-template-columns: 1fr; }
  .memories-heading h2 { max-width: 14ch; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; justify-content: center; padding: 0.8rem 1rem; }
  .header-branding { width: 100%; justify-content: center; }
  .header-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .top-nav { justify-content: center; }
  .top-nav a { padding: 0.45rem 0.65rem; font-size: 0.82rem; }
  .hero { padding-top: 1.25rem; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.05em; }
  .hero-lead { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-highlight { font-size: clamp(1.8rem, 8.5vw, 3rem); max-width: 100%; }
  .hero-actions { align-items: flex-start; }
  .hero-seal { width: 96px; height: 96px; }
  .blessing-values { grid-template-columns: 1fr; }
  .thank-you-shell { padding: 2rem 1.25rem 2.5rem; }
  .thank-you-shell::before, .thank-you-shell::after { left: 0.9rem; right: 0.9rem; }
  .gallery-grid { grid-auto-columns: minmax(78vw, 320px); gap: 1rem; padding-left: 1rem; padding-right: 1rem; }
  .contact-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lightbox-controls { flex-wrap: wrap; justify-content: center; }
  .lightbox-caption { width: 100%; text-align: center; font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .mark-caption { display: none; }
  .language-switch button { min-width: 40px; padding: 0.45rem 0.5rem; font-size: 0.7rem; }
  .scroll-link { width: 100%; justify-content: center; }
  .photo-legend { font-size: 0.92rem; }
}

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