:root{
  --transition-speed:.6s;
  --radius:18px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

html, body{
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--fontB), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x:hidden;
  font-size:16px;
}

h1,h2,h3{
  font-family: var(--fontH), serif;
  text-transform:uppercase;
  font-weight:400;
}

/* =========================================
   SMOOTH TRANSITIONS
   Только на интерактивные/карточные элементы, без глобального дрожания
========================================= */
.iviGalleryItem,
.iviGalleryItem img,
.chip,
.loc-action,
.ldcBtn,
.rsvpSection .btn.btn-full,
.edtl-card,
.dresscode-card,
.loc-card,
.loc-photo,
.ldcPhotoCard,
.field,
button,
input,
select,
textarea,
a{
  transition:
    background-color var(--transition-speed),
    color var(--transition-speed),
    border-color var(--transition-speed),
    box-shadow var(--transition-speed),
    transform .35s ease,
    opacity .35s ease;
}

.container{ max-width:1100px; margin:0 auto; padding:0 20px; }
section{
  padding:100px 0;
  position:relative;
}

/* =========================================
   SUBTITLE
========================================= */
.subtitle{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:4px;
  color: var(--accent-primary);
  margin-bottom:20px;
  display:block;
  font-weight:700;
}

/* =========================================
   HERO
========================================= */
.hero{
  height:100vh;
  height:100svh;
  height:100dvh;
  min-height:600px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position: var(--hero-pos, center);
  background-attachment:scroll;
  z-index:1;
  animation: zoomEffect 20s infinite alternate;
  will-change:transform;
}

@keyframes zoomEffect{
  0%{ transform:scale(1); }
  100%{ transform:scale(1.1); }
}

.hero-grain{
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index:2;
  pointer-events:none;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
  z-index:3;
}

.hero-content{
  position:relative;
  z-index:4;
  padding:60px;
  border:1px solid rgba(255,255,255,.30);
  background:rgba(255,255,255,.06);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(6px);
  animation: heroFadeIn 1.2s ease-out forwards;
  max-width:90%;
  width:800px;
}

@keyframes heroFadeIn{
  from{ opacity:0; transform:translateY(22px);}
  to{ opacity:1; transform:translateY(0);}
}

.subtitle-hero{ color:rgba(255,255,255,.92); }

.hero h1{
  font-family: var(--fontScript), cursive;
  font-size:7rem;
  line-height:1.08;
  margin:15px 0;
  text-transform:none;
  text-shadow:0 4px 15px rgba(0,0,0,.3);
}

.hero-date{
  letter-spacing:5px;
  font-size:1rem;
  margin-top:20px;
  display:inline-block;
  color:rgba(255,255,255,.9);
  text-transform:uppercase;
  border-top:1px solid rgba(255,255,255,.5);
  border-bottom:1px solid rgba(255,255,255,.5);
  padding:10px 0;
}

.scroll-indicator{
  position:absolute;
  left:50%;
  bottom:clamp(26px, 5.5vh, 58px);
  transform:translateX(-50%);
  z-index:10;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:44px;
  height:64px;
  opacity:.88;
  pointer-events:none;
  animation:scrollFloat 2.4s ease-in-out infinite;
}

.scroll-indicator::before{
  content:"";
  position:absolute;
  inset:-10px -12px;
  border-radius:999px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.18), transparent 58%),
    rgba(0,0,0,.10);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity:.65;
  box-shadow:
    0 14px 34px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.mouse{
  position:relative;
  z-index:1;
  width:20px;
  height:32px;
  border:1.5px solid rgba(255,255,255,.86);
  border-radius:999px;
  margin:0;
  box-shadow:
    0 0 18px rgba(255,255,255,.10),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.mouse::before{
  content:"";
  position:absolute;
  top:7px;
  left:50%;
  width:3px;
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  transform:translateX(-50%);
  animation:scrollWheel 2.1s ease-in-out infinite;
}

.arrow-down{
  position:relative;
  z-index:1;
  width:10px;
  height:10px;
  border-right:1.5px solid rgba(255,255,255,.88);
  border-bottom:1.5px solid rgba(255,255,255,.88);
  transform:rotate(45deg);
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.22));
}

@keyframes scrollFloat{
  0%,100%{
    transform:translateX(-50%) translateY(0);
  }
  50%{
    transform:translateX(-50%) translateY(-7px);
  }
}

@keyframes scrollWheel{
  0%{
    transform:translateX(-50%) translateY(0);
    opacity:0;
  }
  18%{
    opacity:1;
  }
  68%{
    transform:translateX(-50%) translateY(10px);
    opacity:.85;
  }
  100%{
    transform:translateX(-50%) translateY(13px);
    opacity:0;
  }
}

/* =========================================
   REVEAL
========================================= */
.reveal,
.reveal-zoom,
.reveal-left,
.reveal-right{
  opacity:0;
  transition:
    opacity .8s cubic-bezier(.25,1,.5,1),
    transform .8s cubic-bezier(.25,1,.5,1);
  will-change:opacity, transform;
}

.reveal{ transform: translateY(50px); }
.reveal-zoom{ transform: scale(.95); transition-duration:1s; }
.reveal-left{ transform: translateX(-50px); }
.reveal-right{ transform: translateX(50px); }

.active{
  opacity:1;
  transform: translate(0) scale(1);
}

.delay-100{ transition-delay:.1s; }
.delay-200{ transition-delay:.2s; }
.delay-300{ transition-delay:.3s; }
.delay-400{ transition-delay:.4s; }

/* =========================================
   TIMER
========================================= */
.timer-strip{
  position:relative;
  z-index:10;
  background: var(--card-bg);
  padding:50px 0;
  margin-top:-50px;
  width:90%;
  max-width:1000px;
  margin-left:auto;
  margin-right:auto;
  box-shadow: var(--shadow-soft);
  display:flex;
  justify-content:center;
  border-bottom:3px solid var(--accent-secondary);
  opacity:0;
  animation: slideUpTimer 1s .9s forwards;
  backface-visibility:hidden;
  transform:translateZ(0);
}

@keyframes slideUpTimer{
  from{opacity:0; transform:translateY(24px);}
  to{opacity:1; transform:translateY(0);}
}

.timer-grid{
  display:flex;
  gap:60px;
  text-align:center;
}

.timer-num{
  font-family: var(--fontH), serif;
  font-size:4.5rem;
  line-height:1;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  display:inline-block;
  width:2ch;
  text-align:center;
}

#days{ width:3ch; }

.timer-label{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:3px;
  opacity:.6;
  margin-top:10px;
  color: var(--text-main);
}

.timer-divider{
  width:1px;
  background: var(--text-main);
  opacity:.18;
  height:60px;
  margin-top:10px;
}

/* =========================================
   STORY
========================================= */
#story{ background: var(--bg-color); }

.story-container{
  display:flex;
  align-items:center;
  gap:60px;
}

.story-content{
  flex:1;
  text-align:left;
}

.story-image{
  flex:1;
  position:relative;
}

.arch-photo{
  width:100%;
  height:550px;
  background-size:cover;
  background-position:center;
  border-radius:300px 300px 0 0;
  box-shadow:20px 20px 0 var(--accent-primary);
}

.deco-icon{
  font-size:2.5rem;
  margin-bottom:20px;
  color: var(--accent-primary);
}

.story-title{
  font-size:3rem;
  margin-bottom:30px;
  color: var(--accent-primary);
}

.story-text{
  font-size:1.2rem;
  margin-bottom:30px;
  opacity:.95;
}

/* =========================================
   PROGRAM (TIMELINE)
========================================= */
.edtl-section{
  padding:90px 0;
  background: var(--section-alt);
  position: relative;
}

.edtl-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.edtl-head{
  text-align: center;
  margin-bottom: 34px;
}

.edtl-kicker{
  margin-bottom: 10px;
  font-family: var(--fontB), sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--accent-primary);
}

.edtl-title{
  margin: 0;
  font-family: var(--fontH), serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.16;
  color: var(--text-main);
}


/* Program heading: studio label and title are separate fields */
.ldcScheduleLabel{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  margin:0 0 10px !important;
  color:var(--accent-primary) !important;
  font-family:var(--fontB), sans-serif !important;
  font-size:.75rem !important;
  line-height:1.4 !important;
  font-weight:800 !important;
  letter-spacing:4px !important;
  text-transform:uppercase !important;
  position:relative;
  z-index:2;
}

.ldcScheduleTitle{
  display:block !important;
  margin:0 !important;
  position:relative;
  z-index:1;
}

.edtl-card{
  position: relative;
  margin: 0 auto;
  width: min(900px, 100%);
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  border: 1px solid rgba(120,120,120,0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 34px;
  overflow: hidden;
  backface-visibility:hidden;
  transform:translateZ(0);
}

.edtl-card::before{
  content:"";
  position:absolute;
  inset:-30px -60px -30px -60px;
  background:
    radial-gradient(60% 55% at 65% 35%, rgba(0,0,0,0.10), transparent 65%),
    radial-gradient(55% 50% at 35% 80%, color-mix(in srgb, var(--accent-secondary) 14%, transparent), transparent 70%);
  opacity: .35;
  pointer-events:none;
}

.edtl-rail{
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 160px;
  width: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-primary) 22%, transparent);
  opacity: .85;
}

.edtl-list{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.edtl-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
  padding: 2px 0;
  position: relative;
}

.edtl-time{
  font-family: var(--fontB), sans-serif;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-primary) 45%, var(--text-main));
  opacity: .65;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  padding-top: 2px;
}

.edtl-dot{
  position: absolute;
  left: 160px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 2px solid color-mix(in srgb, var(--accent-secondary) 70%, transparent);
  transform: translateX(-50%);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

.edtl-content{ padding-left: 40px; }

.edtl-name{
  font-family: var(--fontH), serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 400;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--accent-primary) 40%, var(--text-main));
  margin-bottom: 6px;
  line-height: 1.25;
}

.edtl-desc{
  font-size: .98rem;
  opacity: .72;
  max-width: 58ch;
}

.edtl-item:not(:last-child)::after{
  content:"";
  position:absolute;
  left: 200px;
  right: 24px;
  bottom: -13px;
  height: 1px;
  background: rgba(0,0,0,0.04);
}

/* =========================================
   LOCATION (old loc-*) [оставил, не вырезал]
========================================= */
.loc-section{ background: var(--bg-color); }
.loc-h2{ text-align:center; margin-bottom:16px; }
.loc-subtitle{ text-align:center; margin-bottom:50px; }

.loc-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:26px;
  align-items: stretch;
  margin-top:40px;
}

.loc-card{
  background: var(--card-bg);
  border:1px solid rgba(128,128,128,.12);
  box-shadow: var(--shadow-card);
  border-top:3px solid var(--accent-secondary);
  padding:42px;
  border-radius: var(--radius);
  position:relative;
  overflow:hidden;
}

.loc-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:3px;
  opacity:.85;
  color: var(--accent-primary);
  font-weight:700;
}

.loc-kicker .dot{
  display:inline-flex;
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--accent-secondary);
}

.loc-title{
  font-size:2.4rem;
  margin-bottom:12px;
  color: var(--accent-primary);
}

.loc-sub{
  font-size:1.05rem;
  opacity:.85;
  max-width:52ch;
}

.loc-chips{ margin-top:12px; }

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent-secondary) 35%, transparent);
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
  font-size:.8rem;
  opacity:.92;
  margin-top:14px;
  margin-right:10px;
}

.loc-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}

.loc-action{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-radius:999px;
  border:1px solid rgba(128,128,128,.18);
  background:transparent;
  font-weight:700;
  letter-spacing:.5px;
  cursor:pointer;
  user-select:none;
}

.loc-action.primary{
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: transparent;
}

.loc-action:hover{ box-shadow:0 10px 25px rgba(0,0,0,.08); }

.loc-photo{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  min-height:520px;
  background: color-mix(in srgb, var(--card-bg) 70%, #ddd);
  border:1px solid rgba(128,128,128,.12);
  box-shadow: var(--shadow-card);
}

.loc-photo::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(80% 80% at 30% 30%, rgba(255,255,255,.14), rgba(0,0,0,.12));
  pointer-events:none;
}

.loc-photo .img{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}

.loc-photo .badge{
  position:absolute;
  left:16px;
  top:16px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.88);
  color:#111;
  font-weight:800;
  font-size:.78rem;
  letter-spacing:2px;
  text-transform:uppercase;
  border:1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
}

.loc-photo .caption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  padding:16px 16px;
  border-radius:16px;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}

.loc-photo .caption b{
  display:block;
  font-family: var(--fontH), serif;
  font-weight:500;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:6px;
}

.mini-map{
  margin-top:22px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(128,128,128,.12);
  box-shadow:0 12px 35px rgba(0,0,0,.06);
}

.mini-map iframe{
  width:100%;
  height:280px;
  border:0;
  filter:saturate(1.05) contrast(1.05);
}

/* =========================================
   DRESSCODE
========================================= */
.dc-section{ background: var(--section-alt); }

.dresscode-card{
  max-width:900px;
  margin:0 auto;
  text-align:center;
  padding:60px;
  border:1px solid color-mix(in srgb, var(--accent-secondary) 65%, transparent);
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  position:relative;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  backface-visibility:hidden;
  transform:translateZ(0);
}

.dresscode-card::before{
  content:'';
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  bottom:10px;
  border:1px solid color-mix(in srgb, var(--accent-secondary) 55%, transparent);
  opacity:.25;
  pointer-events:none;
  border-radius: calc(var(--radius) - 8px);
}

.dc-title{
  margin-bottom:18px;
  font-size:2.35rem;
  letter-spacing:.06em;
}

.dc-text{
  max-width:600px;
  margin:0 auto 34px;
  font-size:1.05rem;
  opacity:.78;
}

.dc-palette{
  display:flex;
  justify-content:center;
  gap:34px;
  flex-wrap:wrap;
  padding-top: 6px;
}

.dc-swatch{
  width:76px;
  height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dc-circle{
  width:70px;
  height:70px;
  border-radius:999px;
  background: var(--sw);
  box-shadow:0 14px 34px rgba(0,0,0,.16);
  border:1px solid rgba(0,0,0,.08);
}

/* =========================================
   GALLERY
========================================= */
.gal-section{ background: var(--bg-color); }

.gallery-shell{
  background: transparent;
  backface-visibility:hidden;
  transform:translateZ(0);
}

.iviGallery{
  padding:0;
  margin:0;
}

.iviGalleryGrid{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0;
}

.iviGalleryGrid--masonry{ grid-auto-rows: 10px; }

.iviGalleryItem{
  position: relative;
  display:block;
  border-radius: 22px;
  overflow:hidden;
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility:hidden;
}

.iviGalleryGrid--grid .iviGalleryItem{ aspect-ratio: 1 / 1; }
.iviGalleryGrid--masonry .iviGalleryItem{ aspect-ratio: auto; }
.iviGalleryGrid--masonry .iviGalleryItem img{ height: auto; }

.iviGalleryItem img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
  transform: scale(1.001);
  backface-visibility:hidden;
}

@media (hover:hover){
  .iviGalleryItem:hover{
    transform: translateY(-4px);
    box-shadow: 0 34px 90px rgba(0,0,0,.28);
  }
}

.iviGalleryCaption{ display:none !important; }
#gallery a, .iviGallery a{ pointer-events:auto; }

/* =========================================
   RSVP (вариант #1)
========================================= */
.rsvp-section{
  /*
   * RSVP всегда располагается на спокойном фоне темы.
   * Раньше вся секция окрашивалась в accent-primary и наследовала
   * светлый текст. На пастельных темах, особенно «Пудровое цветение»,
   * это превращало форму почти в белое пятно.
   */
  background: var(--section-alt);
  color: var(--text-main);
  text-align:center;
  padding:120px 0;
}

.rsvp-section > .container > h2,
.rsvp-section > .container > p,
.rsvp-section .rsvp-kicker{
  color: var(--text-main);
}

.rsvp-kicker{
  color: var(--accent-primary) !important;
}

/* =========================================
   RSVP (shared block .rsvpSection)
========================================= */
.rsvpSection{
  position: relative;
  z-index: 2;
  padding: 110px 0;
  background: var(--bg-color);
  color: var(--text-main);
  text-align: center;
}

.rsvpSection .rsvpGrid{
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.rsvpSection .rsvpFormCard{
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: left;
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 35%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card, 0 28px 70px rgba(0,0,0,.10));
  padding: 34px 34px;
  position: relative;
  overflow: hidden;
  backface-visibility:hidden;
  transform:translateZ(0);
}

.rsvpSection .rsvpFormCard::before{
  content:"";
  position:absolute;
  inset:-40px -60px;
  background:
    radial-gradient(60% 55% at 30% 25%, color-mix(in srgb, var(--accent-primary) 14%, transparent), transparent 70%),
    radial-gradient(55% 50% at 70% 85%, color-mix(in srgb, var(--accent-secondary) 12%, transparent), transparent 72%);
  opacity: .45;
  pointer-events:none;
}

.rsvpSection h2{
  text-align: center;
  font-family: var(--fontH), serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 400;
  margin-bottom: 18px;
  color: var(--accent-primary);
}

.rsvpSection .rsvpHint{
  text-align: center;
  margin: 10px auto 22px;
  max-width: 60ch;
  opacity: .78;
}

.rsvpSection .statusBox{
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  background: color-mix(in srgb, var(--card-bg) 75%, transparent);
  border: 1px solid rgba(128,128,128,.18);
}

.rsvpSection .statusBox.ok{
  border-color: color-mix(in srgb, var(--accent-secondary) 55%, transparent);
}

.rsvpSection .statusBox.bad{
  border-color: color-mix(in srgb, var(--accent-primary) 55%, transparent);
}

.rsvpSection .row2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rsvpSection .label{
  display:block;
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform: uppercase;
  opacity:.75;
  margin: 0 0 8px;
}

.rsvpSection .field{
  width: 100%;
  border-radius: 14px;
  padding: 14px 14px;
  background: color-mix(in srgb, var(--bg-color) 55%, var(--card-bg));
  color: var(--text-main);
  border: 1px solid rgba(128,128,128,.22);
  outline: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.rsvpSection .field::placeholder{
  opacity:.55;
  color: color-mix(in srgb, var(--text-main) 55%, transparent);
}

.rsvpSection .field:focus{
  border-color: color-mix(in srgb, var(--accent-secondary) 70%, transparent);
  box-shadow: 0 12px 32px rgba(0,0,0,.09);
}

.rsvpSection textarea.field{
  min-height: 110px;
  resize: vertical;
}

.rsvpSection .chips,
.rsvpSection .chip{ pointer-events: auto !important; }

.rsvpSection .chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  position: relative;
  z-index: 6;
}

.rsvpSection .chip{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 35%, transparent);
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
  color: color-mix(in srgb, var(--text-main) 85%, transparent);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  position: relative;
  z-index: 7;
  touch-action: manipulation;
}

.rsvpSection .chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.rsvpSection .chip[data-active="true"]{
  background: var(--accent-primary);
  border-color: transparent;
  color: var(--text-on-accent);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}

.rsvpSection .rsvpTotal{
  text-align:left;
  margin: 8px 0 0;
  opacity: .85;
}

.rsvpSection .consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(128,128,128,.14);
}

.rsvpSection .consent input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent-primary);
}

.rsvpSection .consent span{
  font-size: .92rem;
  opacity: .8;
  line-height: 1.4;
}

.rsvpSection .btn.btn-full{
  width:100%;
  margin-top: 18px;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
}

.rsvpSection .btn.btn-full:hover{
  box-shadow: 0 22px 56px rgba(0,0,0,.20);
  transform: translateY(-1px);
}

.rsvpSection .btn.btn-full:disabled{
  opacity: .55;
  cursor:not-allowed;
  transform:none;
}

/* guests row grid when visible */
.rsvpSection #guestsRow{
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rsvpSection #guestsRow:not([style*="display: none"]){
  display: grid;
}

/* RSVP contrast guard for every light and dark preset */
.rsvp-section .rsvpSection,
.rsvp-section .rsvpSection .rsvpFormCard,
.rsvp-section .rsvpSection .label,
.rsvp-section .rsvpSection .rsvpHint,
.rsvp-section .rsvpSection .rsvpTotal,
.rsvp-section .rsvpSection .consent,
.rsvp-section .rsvpSection .consent span{
  color: var(--text-main);
}

.rsvp-section .rsvpSection .field,
.rsvp-section .rsvpSection textarea,
.rsvp-section .rsvpSection input,
.rsvp-section .rsvpSection select{
  color: var(--text-main);
  caret-color: var(--accent-primary);
}

.rsvp-section .rsvpSection .field::placeholder,
.rsvp-section .rsvpSection textarea::placeholder,
.rsvp-section .rsvpSection input::placeholder{
  color: color-mix(in srgb, var(--text-main) 58%, transparent);
  opacity: 1;
}

/* =========================================
   LDC LOCATION
========================================= */
.ldcLoc{
  background: var(--bg-color);
  padding: 90px 0;
}

.ldcLocHead{
  text-align:center;
  margin-bottom: 46px;
}

.ldcLocTitleTop{
  margin-top: 10px;
  font-family: var(--fontH), serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 400;
  color: var(--text-main);
  font-size: 1.35rem;
}

.ldcLocSubTop{
  margin-top: 0;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  color: var(--accent-primary);
  opacity: .95;
}

.ldcLocMetaLine{
  margin-top: 12px;
  opacity: .7;
  font-size: .95rem;
  line-height: 1.35;
}

.ldcLocGrid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}

/* LEFT */
.ldcLocLeft{
  background: color-mix(in srgb, var(--card-bg) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 35%, transparent);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  backface-visibility:hidden;
  transform:translateZ(0);
}

.ldcLocLeftInner{ padding: 42px; }

.ldcLocLeft::before{
  content:"";
  position:absolute;
  inset:-40px -60px;
  background:
    radial-gradient(60% 55% at 30% 25%, color-mix(in srgb, var(--accent-primary) 14%, transparent), transparent 70%),
    radial-gradient(55% 50% at 70% 85%, color-mix(in srgb, var(--accent-secondary) 12%, transparent), transparent 72%);
  opacity: .45;
  pointer-events:none;
}

.ldcLocLeftMeta{ position: relative; z-index: 1; }

.ldcLocMiniKicker{
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 900;
  color: color-mix(in srgb, var(--text-main) 72%, transparent);
}

.ldcLocMiniRow{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 10px;
}

.ldcDot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--accent-secondary);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.ldcLocMiniText{
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 3.2px;
  font-weight: 800;
  color: color-mix(in srgb, var(--text-main) 60%, transparent);
}

.ldcLocBigTitle{
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-family: var(--fontH), serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 400;
  font-size: 2.35rem;
  color: var(--accent-primary);
}

.ldcLocDesc{
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .86;
  color: color-mix(in srgb, var(--text-main) 88%, transparent);
}

.ldcLocAddrLine{
  margin-top: 12px;
  font-size: .95rem;
  opacity: .78;
}

.ldcLocChips{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ldcChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-bg) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 25%, transparent);
  font-weight: 700;
  font-size: .84rem;
  color: color-mix(in srgb, var(--text-main) 85%, transparent);
}

.ldcLocActions{
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.ldcBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(128,128,128,.18);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  user-select:none;
  text-decoration:none;
}

.ldcBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.ldcBtnPrimary{
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: transparent;
}

.ldcBtnGhost{ background: transparent; }

.ldcLocMap{
  position: relative;
  z-index: 1;
  margin-top: 22px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(128,128,128,.12);
  box-shadow: 0 12px 35px rgba(0,0,0,.06);
}

.ldcLocMap iframe{
  width:100%;
  height: 290px;
  border:0;
  filter: saturate(1.05) contrast(1.05);
}

/* RIGHT */
.ldcLocRight{
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.ldcPhotoCard{
  position: relative;
  height: 320px;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(128,128,128,.12);
  box-shadow: var(--shadow-card);
  background: color-mix(in srgb, var(--card-bg) 70%, transparent);
  backface-visibility:hidden;
  transform:translateZ(0);
}

.ldcPhotoBg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.ldcPhotoCard::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(80% 80% at 30% 30%, rgba(255,255,255,.10), rgba(0,0,0,.20));
  pointer-events:none;
}

.ldcPhotoBadge{
  position:absolute;
  left: 16px;
  top: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color:#111;
  font-weight: 900;
  font-size: .74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}

.ldcPhotoCaption{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(0,0,0,.38);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

.ldcPhotoCaption b{
  display:block;
  font-family: var(--fontH), serif;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ldcPhotoLines{ line-height: 1.35; opacity: .92; }
.ldcPhotoLines .muted{ display:block; margin-top:4px; opacity:.78; }

/* =========================================
   FOOTER
========================================= */
.footer{
  text-align:center;
  padding:40px;
  color: color-mix(in srgb, var(--text-main) 45%, transparent);
  font-size:.8rem;
  background: transparent;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width:768px){
  section{ padding:60px 0; }

  /* hero */
  .hero-bg{ background-attachment:scroll; }
  .hero h1{ font-size:15vw; margin:10px 0; }
  .hero-content{
    padding:30px 20px;
    width:95%;
    backdrop-filter:none;
    background:rgba(0,0,0,.12);
    border:none;
  }
  .hero-date{ font-size:.8rem; letter-spacing:3px; }

  /* timer */
  .timer-strip{
    width:95%;
    margin-top:-30px;
    padding:30px 0;
  }
  .timer-grid{ gap:15px; }
  .timer-num{ font-size:1.8rem; }
  .timer-label{
    font-size:.5rem;
    letter-spacing:1px;
    opacity:.75;
  }
  .timer-divider{ display:none; }

  /* story */
  .story-container{
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 26px;
  }
  .story-content,
  .story-image{
    width: 100%;
  }
  .story-image{
    display:flex;
    justify-content:center;
  }
  .arch-photo{
    width: min(520px, 92vw);
    height: 360px;
    margin: 0 auto;
    border-radius: 180px 180px 0 0;
    box-shadow: 14px 14px 0 var(--accent-primary);
    background-position: center;
    background-size: cover;
  }
  .story-content{ text-align:center; }
  .story-title{ font-size:2.2rem; }

  /* timeline */
  .edtl-section{ padding:60px 0; }
  .edtl-card{
    padding:24px 18px;
    border-radius:16px;
  }
  .edtl-rail{
    left:92px;
    top:22px;
    bottom:22px;
  }
  .edtl-item{
    grid-template-columns:74px 1fr;
    gap:18px;
  }
  .edtl-dot{
    left:92px;
    top:7px;
  }
  .edtl-content{ padding-left:24px; }
  .edtl-item:not(:last-child)::after{
    left:130px;
    right:12px;
    background: rgba(0,0,0,0.035);
  }
  .edtl-name{ font-size:1rem; }
  .edtl-desc{
    font-size:.95rem;
    opacity:.74;
  }

  /* old loc-* */
  .loc-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
  .loc-card{ padding:30px 22px; }
  .loc-title{ font-size:2rem; }
  .loc-photo{ min-height:360px; }
  .mini-map iframe{ height:240px; }

  /* dresscode */
  .dresscode-card{ padding:44px 18px; }
  .dc-palette{ gap:22px; }

  /* gallery */
  .iviGalleryGrid{
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(520px, 100%);
  }
  .iviGalleryGrid--grid .iviGalleryItem{ aspect-ratio: 4 / 3; }

  /* rsvp */
  .rsvpSection{ padding: 70px 0; }
  .rsvpSection .rsvpFormCard{
    padding: 22px 18px;
    border-radius: 16px;
  }
  .rsvpSection .row2{ grid-template-columns: 1fr; }
  .rsvpSection .chip{
    padding: 10px 12px;
    font-size: .84rem;
  }
  .rsvpSection #guestsRow{ grid-template-columns: 1fr; }

  /* ldc loc */
  .ldcLoc{ padding: 60px 0; }
  .ldcLocGrid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ldcLocLeftInner{ padding: 30px 22px; }
  .ldcLocBigTitle{ font-size: 1.95rem; }
  .ldcLocMap iframe{ height: 240px; }
  .ldcPhotoCard{ height: 280px; }
}

/* =========================================
   MOBILE SAFETY
========================================= */
/*
@media (max-width: 900px){
  .reveal, .reveal-zoom, .reveal-left, .reveal-right,
  .stagger > *{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
*/
/* =========================================
   CONTACTS • LAGO DI COMO THEME BRIDGE
   Общий блок contacts использует свои универсальные переменные.
   Здесь привязываем их к палитре этого шаблона.
========================================= */
html body .ivi-contacts{
  --ivi-contacts-bg: var(--section-alt);
  --ivi-contacts-card: var(--card-bg);
  --ivi-contacts-text: var(--text-main);
  --ivi-contacts-muted: var(--muted);
  --ivi-contacts-accent: var(--accent-primary);
  --ivi-contacts-line: var(--border);
}

html body .ivi-contacts .ivi-contact__name,
html body .ivi-contacts .ivi-contact__phone,
html body .ivi-contacts .ivi-contact__action{
  color: var(--ivi-contacts-text);
}

html body .ivi-contacts .ivi-contact__role,
html body .ivi-contacts .ivi-contacts__text{
  color: var(--ivi-contacts-muted);
}

/* Тёмные темы: плотный контраст без белых тяжёлых карточек */
html[data-dark="1"] body .ivi-contacts{
  --ivi-contacts-bg:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--section-alt) 94%, #000 6%),
      color-mix(in srgb, var(--bg-color) 96%, #000 4%)
    );
  --ivi-contacts-card: color-mix(in srgb, var(--text-main) 8%, transparent);
  --ivi-contacts-text: color-mix(in srgb, var(--text-main) 98%, #fff 2%);
  --ivi-contacts-muted: color-mix(in srgb, var(--text-main) 74%, transparent);
  --ivi-contacts-accent: var(--accent-primary);
  --ivi-contacts-line: color-mix(in srgb, var(--text-main) 20%, transparent);
}

html[data-dark="1"] body .ivi-contacts .ivi-contact{
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--text-main) 10%, transparent),
      color-mix(in srgb, var(--text-main) 5%, transparent)
    );
  border-color: color-mix(in srgb, var(--text-main) 22%, transparent);
  box-shadow:
    0 22px 64px rgba(0,0,0,.24),
    inset 0 1px 0 color-mix(in srgb, var(--text-main) 12%, transparent);
}

html[data-dark="1"] body .ivi-contacts .ivi-contact__avatar{
  color: var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 17%, transparent);
  border-color: color-mix(in srgb, var(--accent-primary) 42%, transparent);
}

html[data-dark="1"] body .ivi-contacts .ivi-contact__name{
  color: var(--text-main);
  text-shadow: 0 8px 24px rgba(0,0,0,.18);
}

html[data-dark="1"] body .ivi-contacts .ivi-contact__role,
html[data-dark="1"] body .ivi-contacts .ivi-contacts__text{
  color: color-mix(in srgb, var(--text-main) 76%, transparent);
  opacity: 1;
}

html[data-dark="1"] body .ivi-contacts .ivi-contact__phone{
  color: var(--text-main);
  opacity: 1;
}

html[data-dark="1"] body .ivi-contacts .ivi-contact__action{
  color: var(--text-main);
  background: color-mix(in srgb, var(--text-main) 7%, transparent);
  border-color: color-mix(in srgb, var(--text-main) 24%, transparent);
  opacity: 1;
}

html[data-dark="1"] body .ivi-contacts .ivi-contact__action:hover,
html[data-dark="1"] body .ivi-contacts .ivi-contact__action:focus-visible{
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent-primary) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent-primary) 72%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-primary) 15%, transparent);
}

@media (max-width:768px){
  html[data-dark="1"] body .ivi-contacts .ivi-contact{
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
