/* ==========================================================================
   Reset
   ========================================================================== */

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

body, h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --color-bg:      #ece7df;
  --color-surface: #faf7f2;
  --color-primary: #4a3328;
  --color-accent:  #c9987a;
  --color-text:    #4a3328;
  --color-muted:   #c0aa96;
  --color-border:  #ddd3c5;

  /* Wedding palette — used in #vibe (palette swatches) and #dresscode */
  --palette-lavender: #a8abdb;
  --palette-cream:    #f6e5b6;
  --palette-rose:     #f1a7b3;
  --palette-sage:     #8d9261;
  --palette-pumpkin:  #f3a070;

  --font-heading:  Georgia, serif;
  --font-body:     sans-serif;

  --section-padding:        80px 40px;
  --section-padding-hero:   80px 40px;
  --section-padding-footer: 48px 40px;
  --max-width:              800px;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

main {
  /* секции — полноширинные, каждая управляет своим контентом сама */
}

/* ==========================================================================
   Section placeholder — удалить по мере реализации блоков
   ========================================================================== */

.section-placeholder {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.section-placeholder span {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  font-style: italic;
}


/* ==========================================================================
   #date — дата, календарь, обратный отсчёт
   ========================================================================== */

@keyframes heart-sway {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%       { transform: rotate(-8deg) scale(1.06); }
  50%       { transform: rotate(0deg) scale(1); }
  75%       { transform: rotate(8deg) scale(1.06); }
}

#date {
  background: var(--color-surface);
  padding: var(--section-padding-hero);
  font-family: var(--font-heading);
}

#date .names {
  text-align: center;
  font-style: italic;
  font-size: 20px;
  color: #b09882;
  letter-spacing: 3px;
  margin-bottom: 56px;
}

#date .date-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  max-width: 780px;
  margin: 0 auto 64px;
}

#date .date-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
#date .date-left .big-num {
  font-size: 148px;
  line-height: 1;
  color: var(--color-primary);
  font-weight: normal;
  letter-spacing: -4px;
}
#date .date-left .month {
  font-size: 22px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 16px;
  align-self: flex-end;
}
#date .date-left .year {
  font-size: 12px;
  letter-spacing: 9px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 6px;
  align-self: flex-end;
}

#date .date-divider {
  width: 1px;
  height: 180px;
  background: var(--color-border);
  flex-shrink: 0;
}

#date .date-right {
  flex-shrink: 0;
}
#date .cal-month-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 14px;
}
#date .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 40px);
  gap: 4px 2px;
}
#date .cal-grid .wd {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ccc0b0;
  text-align: center;
  padding-bottom: 8px;
}
#date .cal-grid .d {
  font-size: 13px;
  color: #9a8878;
  text-align: center;
  line-height: 40px;
  height: 40px;
}
#date .cal-grid .empty { visibility: hidden; }

#date .cal-grid .hl {
  position: relative;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 15px;
}
#date .hl .heart-svg {
  position: absolute;
  inset: -4px;
  width: 48px;
  height: 48px;
  pointer-events: none;
  transform-origin: center center;
  animation: heart-sway 2.6s ease-in-out infinite;
}

#date .countdown {
  display: flex;
  justify-content: center;
  gap: 40px;
}
#date .countdown .unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
#date .countdown .num {
  font-size: 42px;
  color: #c9b5a5;
  line-height: 1;
  min-width: 58px;
  text-align: center;
}
#date .countdown .lbl {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
}
#date .countdown .dot {
  font-size: 38px;
  color: var(--color-border);
  line-height: 1;
  align-self: flex-start;
  padding-top: 6px;
}

@media (max-width: 600px) {
  #date { padding: 60px 24px 56px; }
  #date .date-body { flex-direction: column; gap: 40px; }
  #date .date-left { align-items: center; }
  #date .date-left .big-num { font-size: 110px; }
  #date .date-left .month,
  #date .date-left .year { align-self: center; }
  #date .date-divider { width: 60px; height: 1px; }
  #date .countdown { gap: 20px; }
  #date .countdown .num { font-size: 34px; }
}

/* ==========================================================================
   #location — место проведения
   ========================================================================== */

#location {
  padding: var(--section-padding);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

#location .location-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

#location .section-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 40px;
}

#location .location-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
}

#location .location-venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
}

#location .venue-logo {
  max-width: 280px;
  width: 100%;
}

#location .venue-address {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.7;
}

#location .location-map-wrap {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

#location .location-map {
  width: 100%;
  height: 350px;
  display: block;
  border: none;
}

#location .directions-title {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 20px;
}

#location .location-directions {
  max-width: 600px;
  margin: 0 auto;
}

#location .directions-tabs {
  display: flex;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto 32px;
}

#location .tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}

#location .tab-btn + .tab-btn {
  border-left: 1px solid var(--color-border);
}

#location .tab-btn.active {
  background: var(--color-primary);
  color: var(--color-surface);
}

#location .tab-panel {
  display: none;
}

#location .tab-panel.active {
  display: block;
}

#location .directions-note {
  font-size: 13px;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

#location .transport-mode {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

#location .directions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#location .directions-list li {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

#location .directions-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

#location .directions-placeholder {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  padding: 24px 0;
}

@media (max-width: 600px) {
  #location { padding: 60px 24px; }
  #location .location-top { flex-direction: column; }
  #location .venue-logo { max-width: 200px; }
  #location .location-map { height: 260px; }
  #location .tab-btn { font-size: 12px; padding: 10px 12px; }
}

/* ==========================================================================
   #schedule — программа дня
   ========================================================================== */

#schedule {
  padding: var(--section-padding);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

#schedule .schedule-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

#schedule .section-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 56px;
}

.timeline {
  max-width: 560px;
  margin: 0 auto;
}

.timeline-event {
  display: flex;
  align-items: flex-start;
  padding-bottom: 36px;
}

.timeline-event--last {
  padding-bottom: 0;
}

/* Time column */
.event-time {
  flex: 1;
  min-width: 80px;
  text-align: right;
  padding-right: 24px;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.time-h {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 0.02em;
}

.time-r {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

/* Track column — dot + connecting line */
.event-track {
  width: 24px;
  flex-shrink: 0;
  align-self: flex-start;
  display: flex;
  justify-content: center;
  position: relative;
}

.event-track::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: -42px; /* bridges gap to next event's node */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--color-border);
}

.timeline-event--last .event-track::after {
  display: none;
}

/* Regular node */
.event-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* Ceremony ring node */
.rings-node-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  margin-left: 0px;
  margin-top: -12px;
  flex-shrink: 0;
}

.rings-node-img {
  width: 52px;
  height: 52px;
  display: block;
  filter: invert(72%) sepia(18%) saturate(720%) hue-rotate(336deg) brightness(96%) contrast(88%);
}

.timeline-event--ceremony .event-track::after {
  top: 34px;
  bottom: -36px;
}

/* Sparkles */
.rings-node-wrap .sp {
  position: absolute;
  pointer-events: none;
}
.rings-node-wrap .sp svg {
  display: block;
  overflow: visible;
}
.rings-node-wrap .sp path {
  fill: #c9987a;
  filter: drop-shadow(0 0 3px rgba(201,152,122,0.9));
}

@keyframes sp-flash {
  0%, 20%, 85%, 100% { opacity: 0; transform: scale(0.05) rotate(0deg); }
  50%                 { opacity: 1; transform: scale(0.6)  rotate(20deg); }
}

.rings-node-wrap .sp1 { top: -4px;   right: 6px;  }
.rings-node-wrap .sp2 { top: 2px;    left: 8px;   }
.rings-node-wrap .sp3 { top: 16px;   right: -6px; }
.rings-node-wrap .sp4 { bottom: 8px; right: 2px;  }
.rings-node-wrap .sp5 { bottom: 4px; left: 1px;   }
.rings-node-wrap .sp6 { top: 12px;   left: -4px;  }

.rings-node-wrap .sp1 path { animation: sp-flash 2.8s ease-in-out 0.0s  infinite; }
.rings-node-wrap .sp2 path { animation: sp-flash 3.2s ease-in-out 0.7s  infinite; }
.rings-node-wrap .sp3 path { animation: sp-flash 2.5s ease-in-out 1.3s  infinite; }
.rings-node-wrap .sp4 path { animation: sp-flash 3.0s ease-in-out 0.4s  infinite; }
.rings-node-wrap .sp5 path { animation: sp-flash 2.1s ease-in-out 1.8s  infinite; }
.rings-node-wrap .sp6 path { animation: sp-flash 2.9s ease-in-out 0.9s  infinite; }

/* Content column */
.event-content {
  flex: 1;
  padding-left: 20px;
}

.event-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 16px;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.event-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Ceremony highlight */
.timeline-event--ceremony .event-name {
  font-style: normal;
  font-size: 18px;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.timeline-event--ceremony .event-desc {
  font-family: var(--font-heading);
  font-style: italic;
  color: #9a8070;
}

/* Scroll reveal */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.timeline-event.js-reveal {
  opacity: 0;
}

.timeline-event.js-reveal.is-visible {
  animation: reveal-up 0.55s ease var(--reveal-delay, 0ms) both;
}

@media (max-width: 600px) {
  #schedule { padding: 60px 24px; }
  .event-time { width: 76px; padding-right: 16px; }
  .time-h { font-size: 15px; }
}

/* ==========================================================================
   #vibe — концепт, мудборд и палитра
   ========================================================================== */

#vibe {
  padding: var(--section-padding);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

#vibe .vibe-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

#vibe .section-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* Top row: hero photo + text + palette
   columns mirror the .vibe-tiles grid below so hero aligns with the left tile */
#vibe .vibe-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

#vibe .vibe-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--color-surface);
  box-shadow:
    0 1px 0 rgba(74, 51, 40, 0.04),
    0 6px 18px -10px rgba(74, 51, 40, 0.18);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#vibe .vibe-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) brightness(1.02);
  transition: filter 0.5s ease, transform 0.6s ease;
}

#vibe .vibe-photo:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(74, 51, 40, 0.04),
    0 12px 26px -10px rgba(74, 51, 40, 0.22);
}
#vibe .vibe-photo:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.02);
}

#vibe .vibe-photo--hero { aspect-ratio: 3 / 4; }

#vibe .vibe-text {
  padding: 4px 0 4px 22px;
}

#vibe .vibe-lead {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: 0.005em;
}

#vibe .vibe-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: #6e5847;
  letter-spacing: 0.01em;
}

/* Palette — нарисованные «меловые» мазки, без подписей */
#vibe .palette-strokes {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 40px 0 36px -10px;
  mix-blend-mode: multiply;
}

/* Bottom row: 2 uniform tiles */
#vibe .vibe-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

#vibe .vibe-photo--tile {
  aspect-ratio: 4 / 3;
}

/* Dress code copy — живёт в правой колонке рядом с лидом/телом */
#vibe .dresscode-lead {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

#vibe .dresscode-aside {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 6px;
}

#vibe .dresscode-aside:last-of-type {
  margin-bottom: 0;
}

/* Reveal — reuses the .js-reveal pattern from #schedule */
#vibe .js-reveal {
  opacity: 0;
}
#vibe .js-reveal.is-visible {
  animation: reveal-up 0.7s ease var(--reveal-delay, 0ms) both;
}

@media (max-width: 600px) {
  #vibe { padding: 56px 24px; }

  #vibe .section-eyebrow {
    margin-bottom: 36px;
  }

  /* Stack hero above text on mobile */
  #vibe .vibe-hero-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  #vibe .vibe-photo--hero {
    width: 280px;
    max-width: 100%;
    justify-self: center;
  }

  #vibe .vibe-text {
    padding: 0;
    text-align: center;
  }

  #vibe .vibe-lead {
    font-size: 19px;
    margin-bottom: 16px;
  }

  #vibe .vibe-body {
    font-size: 13.5px;
  }

  #vibe .palette-strokes {
    max-width: 320px;
    margin: 32px auto 28px;
  }

  #vibe .dresscode-lead {
    font-size: 14.5px;
  }

  #vibe .dresscode-aside {
    font-size: 13px;
  }

  #vibe .vibe-tiles {
    gap: 10px;
  }
}

/* ==========================================================================
   #rsvp — подтверждение участия + модальное окно с гуглоформой
   ========================================================================== */

#rsvp {
  padding: var(--section-padding);
  background: var(--color-bg);
}

#rsvp .rsvp-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

#rsvp .section-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 32px;
}

#rsvp .rsvp-lead {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-primary);
  max-width: 480px;
  margin: 0 auto 18px;
}

#rsvp .rsvp-deadline {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  margin-bottom: 36px;
}

#rsvp .rsvp-deadline-date {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
}

.rsvp-cta {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-surface);
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rsvp-cta:hover {
  background: var(--color-primary);
}

.rsvp-cta:active {
  transform: translateY(1px);
}

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rsvp-modal[hidden] {
  display: none;
}

.rsvp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 51, 40, 0.55);
  backdrop-filter: blur(2px);
}

.rsvp-modal-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(74, 51, 40, 0.35);
}

.rsvp-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(74, 51, 40, 0.12);
}

.rsvp-modal-close:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

.rsvp-modal-iframe-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  background: var(--color-surface);
}

.rsvp-modal-iframe {
  flex: 1;
  width: 100%;
  border: 0;
  min-height: 480px;
}

body.rsvp-locked {
  overflow: hidden;
}

@media (max-width: 600px) {
  #rsvp {
    padding: 60px 24px;
  }
  .rsvp-modal {
    padding: 0;
  }
  .rsvp-modal-window {
    max-width: none;
    max-height: 100vh;
    height: 100vh;
    border: 0;
  }
}

/* ==========================================================================
   #contacts — контакты организаторов и ведущего
   ========================================================================== */

#contacts {
  padding: var(--section-padding-footer);
  background: var(--color-surface);
}

#contacts .contacts-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

#contacts .contacts-intro {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  color: #9a8070;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 36px;
  letter-spacing: 0.02em;
}

#contacts .contacts-groups {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contacts .contacts-divider {
  width: 1px;
  height: 80px;
  background: var(--color-border);
  margin: 0 56px;
  flex-shrink: 0;
}

#contacts .contacts-group-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: normal;
}

#contacts .contacts-people {
  display: flex;
  gap: 40px;
  justify-content: center;
}

#contacts .contact-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#contacts .contact-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 17px;
  color: var(--color-primary);
}

#contacts .contact-tg {
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.03em;
}

#contacts .contact-tg:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  #contacts { padding: 40px 24px; }
  #contacts .contacts-groups {
    flex-direction: column;
    gap: 32px;
  }
  #contacts .contacts-divider {
    display: none;
  }
}

/* ==========================================================================
   #gifts — что подарить
   ========================================================================== */

#gifts {
  padding: var(--section-padding);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

#gifts .gifts-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

#gifts .section-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 40px;
}

#gifts .gifts-lede {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 16px;
  color: #9a8070;
  line-height: 1.7;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
  letter-spacing: 0.01em;
}

#gifts .gifts-lede em {
  font-style: italic;
  color: var(--color-accent);
}

#gifts .gifts-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
}

#gifts .gift-card {
  flex: 1;
  background: rgba(250, 247, 242, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
}

#gifts .gift-card-title {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

#gifts .gift-card--yes .gift-card-title { color: var(--color-accent); }
#gifts .gift-card--no  .gift-card-title { color: var(--color-muted); }

#gifts .gift-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#gifts .gift-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#gifts .gift-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gifts .gift-card--yes .gift-icon { color: var(--color-accent); }
#gifts .gift-card--no  .gift-icon { color: var(--color-muted); }

#gifts .gift-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

#gifts .gift-text strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Trigger word inside "Деньги" item — looks like an inline link */
#gifts .payment-trigger {
  font: inherit;
  color: var(--color-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
  line-height: inherit;
}

#gifts .payment-trigger:hover,
#gifts .payment-trigger:focus-visible {
  color: var(--color-primary);
  outline: none;
}

#gifts .gift-ref {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

#gifts .gift-ref:hover,
#gifts .gift-ref:focus-visible {
  color: var(--color-primary);
  outline: none;
}

/* Popover dialog with QR + transfer details */
.payment-popover {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  padding: 32px 28px 28px;
  max-width: 320px;
  width: calc(100% - 32px);
  text-align: center;
  font-family: var(--font-body);
  color: var(--color-text);
  box-shadow: 0 12px 40px rgba(74, 51, 40, 0.18);
}

.payment-popover::backdrop {
  background: rgba(74, 51, 40, 0.35);
  backdrop-filter: blur(2px);
}

.payment-popover-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.payment-popover-close:hover,
.payment-popover-close:focus-visible {
  color: var(--color-primary);
  outline: none;
}

.payment-popover-title {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.payment-popover-qr {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 18px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.payment-popover-qr:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 51, 40, 0.08);
}

.payment-popover-qr img {
  width: 160px;
  height: 160px;
  display: block;
}

.payment-popover-hint {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.payment-popover-hint a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.payment-popover-hint a:hover {
  color: var(--color-primary);
}

.payment-popover-recipient {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
}

.payment-popover-joint {
  font-size: 12px;
}

/* Reveal-up на карточках — переиспользует keyframes reveal-up из #schedule */
.gift-card.js-reveal { opacity: 0; }
.gift-card.js-reveal.is-visible {
  animation: reveal-up 0.55s ease var(--reveal-delay, 0ms) both;
}

/* Покачивание правого листа у растения */
@keyframes leaf-sway {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}

#gifts .gift-icon--plant .leaf-anim {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: leaf-sway 3.5s ease-in-out infinite;
}

@media (max-width: 600px) {
  #gifts { padding: 60px 24px; }
  #gifts .gifts-lede { font-size: 15px; margin-bottom: 36px; }
  #gifts .gifts-cards { flex-direction: column; gap: 16px; }
  #gifts .gift-card { padding: 24px 20px; }
  .payment-popover { padding: 28px 20px 20px; }
  .payment-popover-qr img { width: 140px; height: 140px; }
}
