/* =========================================================
   GLASS AURA → LIVE EDITORIAL
   Без фоновых карточек на секциях
   /templates/glass-aura/assets/editorial.css
========================================================= */

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

:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1160px;

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;

  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 8%, transparent);

  --shadow-photo: 0 26px 80px rgba(20, 10, 30, .16);
  --shadow-soft: 0 16px 46px rgba(20, 10, 30, .10);

  --surface:
    color-mix(in srgb, #fff 58%, var(--bg1) 42%);
  --surface-strong:
    color-mix(in srgb, #fff 76%, var(--bg1) 24%);
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--fontBody);
  overflow-x: hidden;
  background:
    radial-gradient(900px 620px at 8% 5%, rgba(var(--accentRgb), .20), transparent 60%),
    radial-gradient(820px 560px at 94% 14%, rgba(var(--goldRgb), .18), transparent 58%),
    radial-gradient(900px 650px at 50% 100%, rgba(var(--accentRgb), .10), transparent 68%),
    linear-gradient(145deg, var(--bg1), var(--bg2));
  -webkit-tap-highlight-color: transparent;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

/* живая зернистая фактура, но не фон у блоков */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .23;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(60, 36, 24, .16) 1px, transparent 0);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

/* мягкий свет по всей странице */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22), transparent 34%, rgba(255,255,255,.13)),
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 42%);
}

body[data-dark="1"] {
  background:
    radial-gradient(900px 620px at 8% 5%, rgba(var(--accentRgb), .28), transparent 60%),
    radial-gradient(820px 560px at 94% 14%, rgba(var(--goldRgb), .14), transparent 58%),
    radial-gradient(900px 650px at 50% 100%, rgba(var(--accentRgb), .16), transparent 68%),
    linear-gradient(145deg, var(--bg1), var(--bg2));
}

body[data-dark="1"]::before {
  opacity: .16;
  mix-blend-mode: screen;
}

body[data-dark="1"] {
  --line: rgba(255,255,255,.18);
  --line-soft: rgba(255,255,255,.10);
  --surface: rgba(255,255,255,.07);
  --surface-strong: rgba(255,255,255,.10);
  --shadow-photo: 0 30px 90px rgba(0,0,0,.46);
  --shadow-soft: 0 18px 56px rgba(0,0,0,.34);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  padding: 22px 0 78px;
  position: relative;
  z-index: 2;
}

/* =========================================================
   HEADER
========================================================= */

header,
.paperHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.66), transparent 36%),
    linear-gradient(135deg, rgba(var(--accentRgb), .96), rgba(var(--goldRgb), .76));
  box-shadow: 0 18px 48px rgba(20, 10, 30, .15);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand b {
  display: block;
  max-width: 440px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--fontHeading);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.headerCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(var(--accentRgb), .36);
  border-radius: 999px;
  background: rgba(var(--accentRgb), .95);
  color: #fff;
  box-shadow:
    0 18px 48px rgba(20, 10, 30, .15),
    0 0 0 6px rgba(var(--accentRgb), .10);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform .22s var(--ease),
    box-shadow .22s var(--ease),
    filter .22s ease;
}

.headerCta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

nav,
.pill {
  display: none !important;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: clamp(640px, 82vh, 790px);
  display: grid;
  align-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2%;
  width: min(860px, 86vw);
  height: min(860px, 86vw);
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  opacity: .34;
  pointer-events: none;
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .74fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: inherit;
}

.heroMedia {
  position: relative;
  min-height: clamp(510px, 70vh, 720px);
  overflow: visible;
  background: transparent;
}

.heroMedia::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10%;
  width: 58%;
  height: 72%;
  border: 1px solid var(--line);
  border-radius: 999px 999px 28px 28px;
  opacity: .42;
  transform: rotate(-7deg);
  pointer-events: none;
}

.heroMedia::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.55), transparent 38%),
    linear-gradient(135deg, rgba(var(--accentRgb), .88), rgba(var(--goldRgb), .60));
  box-shadow: 0 22px 60px rgba(20, 10, 30, .16);
  opacity: .92;
  pointer-events: none;
}

.heroMedia img {
  position: relative;
  z-index: 2;
  width: min(520px, 86%);
  height: clamp(500px, 70vh, 710px);
  margin-left: auto;
  object-fit: cover;
  display: block;
  border-radius: 999px 999px 36px 36px;
  box-shadow: var(--shadow-photo);
  transform: rotate(2deg);
  filter: saturate(.96) contrast(1.03);
  transition:
    transform .9s var(--ease),
    filter .5s ease;
}

.heroMedia:hover img {
  transform: rotate(.8deg) scale(1.025);
  filter: saturate(1.05) contrast(1.03);
}

.heroCard {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.heroCard::before {
  content: "свадебное приглашение";
  width: fit-content;
  margin-bottom: 6px;
  color: rgba(var(--accentRgb), .95);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--fontHeading);
  font-size: clamp(58px, 8vw, 118px);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.07em;
}

.sub {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.78;
}

.timer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tbox {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tbox b {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

/* =========================================================
   COMMON SECTIONS
   Главное: у секций нет отдельных бекграундов
========================================================= */

section {
  position: relative;
  margin-top: clamp(70px, 9vw, 128px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

section::before {
  content: "";
  display: block;
  width: min(180px, 40vw);
  height: 1px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  background:
    linear-gradient(90deg,
      transparent,
      color-mix(in srgb, var(--accent) 56%, transparent),
      transparent
    );
}

section::after {
  content: "";
  position: absolute;
  right: min(4vw, 40px);
  top: -28px;
  width: 120px;
  height: 120px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 999px;
  opacity: .25;
  pointer-events: none;
}

.secHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
}

.secIn {
  padding: clamp(26px, 4vw, 46px) 0 0;
  border: 0;
  background: transparent;
}

.secHead > p:last-child {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: rgba(var(--accentRgb), .95);
  font-size: 20px;
}

.secKicker,
.eyebrow {
  margin: 0 0 12px;
  color: rgba(var(--accentRgb), .96);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.secHead h2 {
  margin: 0;
  max-width: 820px;
  color: var(--ink);
  font-family: var(--fontHeading);
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 600;
  line-height: .84;
  letter-spacing: -.065em;
}

.secHead p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   STORY
========================================================= */

#story .storyGrid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

#story .storyText {
  min-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

#story .storyText::before {
  content: "“";
  display: block;
  margin-bottom: 20px;
  color: rgba(var(--accentRgb), .62);
  font-family: var(--fontHeading);
  font-size: clamp(78px, 8vw, 132px);
  line-height: .55;
}

#story .storyText p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.9;
}

#story .storyText p + p {
  margin-top: 18px;
}

#story .storyMedia {
  position: relative;
  min-height: 100%;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#story .storyMedia::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -22px;
  right: 22px;
  bottom: 22px;
  z-index: 0;
  border: 1px solid var(--line);
  border-radius: 32px;
  transform: rotate(-3deg);
  opacity: .48;
}

#story .storyMedia::after {
  content: "love story";
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0,0,0,.45);
}

#story .storyMedia img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 32px;
  box-shadow: var(--shadow-photo);
  filter: saturate(.96) contrast(1.03);
  transition:
    transform .8s var(--ease),
    filter .4s ease;
}

#story .storyMedia:hover img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.03);
}

/* =========================================================
   PROGRAM — живой блок без фона секции
========================================================= */

.planList {
  display: grid;
  gap: 0;
  counter-reset: plan;
  position: relative;
}

.planList::before {
  content: "";
  position: absolute;
  left: 124px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background:
    linear-gradient(to bottom,
      transparent,
      color-mix(in srgb, var(--accent) 52%, transparent),
      transparent
    );
}

.planRow {
  counter-increment: plan;
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  box-shadow: none;
  animation: planLiveIn .75s var(--ease) both;
}

.planRow:nth-child(1) { animation-delay: .03s; }
.planRow:nth-child(2) { animation-delay: .09s; }
.planRow:nth-child(3) { animation-delay: .15s; }
.planRow:nth-child(4) { animation-delay: .21s; }
.planRow:nth-child(5) { animation-delay: .27s; }
.planRow:nth-child(6) { animation-delay: .33s; }

@keyframes planLiveIn {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.planRow::before {
  content: counter(plan, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: 18px;
  color: rgba(var(--accentRgb), .13);
  font-family: var(--fontHeading);
  font-size: clamp(52px, 7vw, 90px);
  line-height: .8;
  font-weight: 600;
  pointer-events: none;
}

.planTime {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(var(--accentRgb), .95);
  color: #fff;
  box-shadow:
    0 18px 46px rgba(20,10,30,.14),
    0 0 0 6px rgba(var(--accentRgb), .10);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
}

.planTitle {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-right: 80px;
  color: var(--ink);
  font-family: var(--fontHeading);
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.055em;
}

.planText {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.planRow:hover .planTime {
  transform: translateY(-2px);
}

.planTime,
.planRow {
  transition:
    transform .3s var(--ease),
    opacity .3s ease;
}

/* =========================================================
   SHARED BLOCK RESET
========================================================= */

#galleryWrap .iviGallery,
#locationWrap #location,
#rsvpWrap #rsvp,
#dresscodeWrap #dresscode.iviDress,
#rsvpWrap #rsvpInner,
#rsvpWrap .rsvpSection {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* =========================================================
   GALLERY — фото живут сами, без подложек секции
========================================================= */

#galleryWrap .iviGalleryGrid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2vw, 20px) !important;
  align-items: stretch !important;
}

#galleryWrap .iviGalleryItem {
  position: relative !important;
  display: block !important;
  grid-column: span 2;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: transparent !important;
  box-shadow: var(--shadow-photo) !important;
  text-decoration: none !important;
  min-height: 280px;
  transform: translateY(0);
  transition:
    transform .38s var(--ease),
    box-shadow .38s var(--ease),
    border-radius .38s var(--ease);
}

#galleryWrap .iviGalleryItem:first-child {
  grid-column: span 3;
}

#galleryWrap .iviGalleryItem:nth-child(2) {
  grid-column: span 3;
}

#galleryWrap .iviGalleryItem img {
  width: 100% !important;
  height: 100% !important;
  min-height: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover !important;
  display: block !important;
  filter: saturate(.96) contrast(1.03);
  transition:
    transform .7s var(--ease),
    filter .35s ease;
}

#galleryWrap .iviGalleryItem:first-child img,
#galleryWrap .iviGalleryItem:nth-child(2) img {
  aspect-ratio: 16 / 10;
}

#galleryWrap .iviGalleryItem:hover {
  transform: translateY(-7px);
  border-radius: 34px !important;
}

#galleryWrap .iviGalleryItem:hover img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.03);
}

#galleryWrap .iviGalleryCaption {
  position: absolute !important;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  margin: 0 !important;
  padding: 8px 12px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.32) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.72) !important;
  color: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =========================================================
   DRESSCODE — без фона секции, только палитра
========================================================= */

#dresscodeWrap.dresscodeOnly .secIn {
  padding-top: clamp(24px, 4vw, 46px);
}

#dresscodeWrap #dresscode .iviDressWrap {
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
}

#dresscodeWrap #dresscode .iviDressKicker {
  color: rgba(var(--accentRgb), .96) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
}

#dresscodeWrap #dresscode .iviDressTitle {
  margin: 14px auto 0 !important;
  color: var(--ink) !important;
  font-family: var(--fontHeading) !important;
  font-size: clamp(38px, 5.6vw, 78px) !important;
  font-weight: 600 !important;
  line-height: .9 !important;
  letter-spacing: -.06em !important;
}

#dresscodeWrap #dresscode .iviDressText {
  max-width: 660px !important;
  margin: 20px auto 0 !important;
  color: var(--muted) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

#dresscodeWrap #dresscode .iviDressSwatches {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 28px !important;
}

#dresscodeWrap #dresscode .iviDressDot {
  width: 64px !important;
  height: 64px !important;
  border-radius: 999px !important;
  background: var(--c) !important;
  background-color: var(--c) !important;
  border: 5px solid color-mix(in srgb, #fff 70%, var(--bg1) 30%) !important;
  box-shadow: var(--shadow-soft) !important;
}

/* =========================================================
   LOCATION
========================================================= */

#locationWrap #location :is(.iviLocHead, .iviLocKicker, .iviLocTitle, .iviLocHowTitle, .iviLocHowtoTitle, .iviLocHow, .howtoTitle),
#locationWrap #location > h2,
#locationWrap #location > h3 {
  display: none !important;
}

#locationWrap #location .iviLocGrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 3vw, 28px) !important;
}

#locationWrap #location .iviLocCard {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#locationWrap #location .iviLocPhoto {
  overflow: hidden !important;
  border-radius: 30px !important;
  box-shadow: var(--shadow-photo) !important;
}

#locationWrap #location .iviLocPhoto img {
  width: 100% !important;
  height: 360px !important;
  object-fit: cover !important;
  display: block !important;
  filter: saturate(.96) contrast(1.03);
  transform: scale(1.02);
  transition:
    transform .7s var(--ease),
    filter .35s ease;
}

#locationWrap #location .iviLocPhoto:hover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.03);
}

#locationWrap #location .iviLocBody {
  padding: 20px 0 0 !important;
}

#locationWrap #location .iviLocBadge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(var(--accentRgb), .24) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(var(--accentRgb), .96) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

#locationWrap #location .iviLocName {
  margin: 14px 0 8px !important;
  color: var(--ink) !important;
  font-family: var(--fontHeading) !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  font-weight: 600 !important;
  line-height: .95 !important;
  letter-spacing: -.04em !important;
}

#locationWrap #location .iviLocAddr,
#locationWrap #location .iviLocNote {
  color: var(--muted) !important;
  font-size: 15px !important;
  line-height: 1.68 !important;
}

#locationWrap #location .iviLocActions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

#locationWrap #location .iviBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: var(--fontBody) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .18em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

#locationWrap #location .iviBtnPrimary {
  border-color: rgba(var(--accentRgb), .42) !important;
  background: rgba(var(--accentRgb), .95) !important;
  color: #fff !important;
  box-shadow: 0 18px 48px rgba(20,10,30,.14) !important;
}

/* =========================================================
   RSVP — формы остаются читаемыми, но секция без фона
========================================================= */

#rsvpWrap {
  overflow: visible !important;
}

#rsvpWrap .secIn {
  padding-left: 0;
  padding-right: 0;
}

#rsvpWrap :where(hr, .line, .divider, .rsvpLine, .rose-line-svg),
#rsvpWrap #rsvp > h2 {
  display: none !important;
}

#rsvpWrap .rsvpLabel {
  margin: 0 0 8px !important;
  color: rgba(var(--accentRgb), .96) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
}

#rsvpWrap .rsvpGrid {
  display: block !important;
  width: 100% !important;
}

#rsvpWrap .rsvpFormCard {
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#rsvpWrap .rsvpHint {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

#rsvpWrap .row2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

#rsvpWrap .formRow {
  margin: 0 0 16px !important;
}

#rsvpWrap .label {
  display: block !important;
  margin: 0 0 7px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

#rsvpWrap .field {
  display: block !important;
  width: 100% !important;
  min-height: 54px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 18px !important;
  outline: none !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-soft) !important;
  font-family: var(--fontBody) !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#rsvpWrap textarea.field {
  min-height: 124px !important;
  resize: vertical !important;
}

#rsvpWrap .field:focus {
  border-color: rgba(var(--accentRgb), .54) !important;
  box-shadow:
    0 0 0 5px rgba(var(--accentRgb), .12),
    var(--shadow-soft) !important;
}

#rsvpWrap .field::placeholder {
  color: color-mix(in srgb, var(--muted) 64%, transparent) !important;
}

#rsvpWrap .chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#rsvpWrap .chip {
  min-height: 46px !important;
  padding: 12px 15px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 999px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-soft) !important;
  cursor: pointer !important;
  font-family: var(--fontBody) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  transition:
    transform .2s var(--ease),
    box-shadow .2s var(--ease),
    background .2s ease,
    border-color .2s ease;
}

#rsvpWrap .chip:hover {
  transform: translateY(-1px);
}

#rsvpWrap .chip[data-active="true"],
#rsvpWrap .chip.active,
#rsvpWrap .chip.is-active {
  border-color: rgba(var(--accentRgb), .55) !important;
  background: rgba(var(--accentRgb), .95) !important;
  color: #fff !important;
  box-shadow:
    0 18px 46px rgba(20,10,30,.15),
    0 0 0 4px rgba(var(--accentRgb), .12) !important;
}

#rsvpWrap .rsvpTotal {
  margin: 4px 0 16px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 18px !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  box-shadow: var(--shadow-soft) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

#rsvpWrap .rsvpTotal b {
  color: rgba(var(--accentRgb), .96) !important;
  font-weight: 900 !important;
}

#rsvpWrap .consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 11px !important;
  margin-top: 2px !important;
  padding: 13px 14px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 18px !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  box-shadow: var(--shadow-soft) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

#rsvpWrap .consent input[type="checkbox"] {
  width: 19px !important;
  height: 19px !important;
  margin: 2px 0 0 !important;
  flex: 0 0 19px !important;
  accent-color: rgba(var(--accentRgb), .96) !important;
}

#rsvpWrap .btn.btn-full,
#rsvpWrap button[type="submit"],
#rsvpWrap input[type="submit"] {
  width: 100% !important;
  min-height: 56px !important;
  margin-top: 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(var(--accentRgb), .96) !important;
  color: #fff !important;
  box-shadow:
    0 22px 62px rgba(20,10,30,.17),
    0 0 0 4px rgba(var(--accentRgb), .12) !important;
  cursor: pointer !important;
  font-family: var(--fontBody) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
}

#rsvpWrap .statusBox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 18px !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-soft) !important;
}

#rsvpWrap .statusBox.ok {
  border-color: rgba(46, 125, 80, .24) !important;
  background: rgba(46, 125, 80, .08) !important;
  color: #245b3b !important;
}

#rsvpWrap .statusBox.bad {
  border-color: rgba(176, 54, 54, .22) !important;
  background: rgba(176, 54, 54, .08) !important;
  color: #7a2a2a !important;
}

#rsvpWrap .field.is-invalid {
  border-color: rgba(176, 54, 54, .38) !important;
  background: rgba(176, 54, 54, .04) !important;
}

#rsvpWrap .chip.is-invalid {
  border-color: rgba(176, 54, 54, .38) !important;
}

/* preview lock */
#rsvpWrap .previewLockNote {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
  padding: 18px !important;
  overflow: hidden !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 22px !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-soft) !important;
}

#rsvpWrap .previewLockNote::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  background: linear-gradient(180deg, rgba(var(--accentRgb), .88), rgba(var(--accentRgb), .35)) !important;
}

#rsvpWrap .previewLockBadge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(var(--accentRgb), .16) !important;
  border-radius: 999px !important;
  background: rgba(var(--accentRgb), .10) !important;
  color: rgba(var(--accentRgb), .96) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

#rsvpWrap .previewLockDot {
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
  border-radius: 999px !important;
  background: rgba(var(--accentRgb), .96) !important;
  box-shadow: 0 0 0 6px rgba(var(--accentRgb), .12) !important;
}

#rsvpWrap .previewLockTitle {
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

#rsvpWrap .previewLockText {
  max-width: 720px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

/* =========================================================
   FOOTER
========================================================= */

.gaFooter {
  margin-top: clamp(70px, 9vw, 120px);
  padding: 22px 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 920px) {
  .wrap {
    width: calc(100% - 24px);
    padding: 16px 0 66px;
  }

  header,
  .paperHeader {
    padding-bottom: 18px;
  }

  .brand b {
    max-width: 240px;
  }

  .hero {
    min-height: auto;
  }

  .heroGrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .heroCard {
    order: 2;
  }

  .heroMedia {
    order: 1;
    min-height: 460px;
  }

  .heroMedia img {
    width: min(520px, 90%);
    height: 450px;
    margin: 0 auto;
  }

  #story .storyGrid {
    grid-template-columns: 1fr;
  }

  #story .storyMedia img {
    min-height: 380px;
  }

  .planList::before {
    left: 96px;
  }

  #galleryWrap .iviGalleryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #galleryWrap .iviGalleryItem,
  #galleryWrap .iviGalleryItem:first-child,
  #galleryWrap .iviGalleryItem:nth-child(2) {
    grid-column: span 1;
  }

  #locationWrap #location .iviLocGrid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 20px);
  }

  header,
  .paperHeader {
    align-items: center;
  }

  .mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand small {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .brand b {
    max-width: 166px;
    font-size: 18px;
  }

  .headerCta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: .14em;
  }

  .heroMedia {
    min-height: 360px;
  }

  .heroMedia img {
    width: 88%;
    height: 350px;
    border-radius: 999px 999px 28px 28px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 74px);
  }

  .timer {
    gap: 8px;
  }

  .tbox {
    flex: 1 1 auto;
    justify-content: center;
  }

  section {
    margin-top: 76px;
  }

  section::before {
    margin-bottom: 34px;
  }

  section::after,
  .secHead > p:last-child {
    display: none;
  }

  .secHead {
    display: block;
  }

  .secHead h2 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .secIn {
    padding-top: 26px;
  }

  #story .storyText::before {
    font-size: 78px;
  }

  #story .storyMedia::before {
    display: none;
  }

  #story .storyMedia img {
    min-height: 310px;
    border-radius: 26px;
  }

  .planList::before {
    left: 30px;
  }

  .planRow {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .planTime {
    min-height: 48px;
    padding: 0 12px;
    font-size: 12px;
  }

  .planTitle {
    padding-right: 34px;
    font-size: 25px;
  }

  .planRow::before {
    top: 20px;
    font-size: 38px;
  }

  #galleryWrap .iviGalleryGrid {
    grid-template-columns: 1fr !important;
  }

  #galleryWrap .iviGalleryItem img {
    min-height: 320px;
  }

  #locationWrap #location .iviLocPhoto img {
    height: 280px !important;
  }

  #locationWrap #location .iviLocActions {
    display: grid !important;
  }

  #locationWrap #location .iviBtn {
    width: 100% !important;
  }

  #rsvpWrap .row2 {
    grid-template-columns: 1fr !important;
  }

  #rsvpWrap .chips {
    gap: 8px !important;
  }

  #rsvpWrap .chip {
    flex: 1 1 auto !important;
    min-width: calc(50% - 8px) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    letter-spacing: .10em !important;
  }

  #rsvpWrap .btn.btn-full,
  #rsvpWrap button[type="submit"],
  #rsvpWrap input[type="submit"] {
    min-height: 52px !important;
    letter-spacing: .16em !important;
  }
}

@media (max-width: 430px) {
  .wrap {
    width: calc(100% - 18px);
  }

  .brand b {
    max-width: 130px;
  }

  .headerCta {
    padding: 0 12px;
  }

  .heroMedia,
  .heroMedia img {
    height: auto;
    min-height: 310px;
  }

  #rsvpWrap .chip {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}