:root {
  --em:   #2a7d5a;
  --em-d: #1f5e42;
  --em-l: #e8f4ef;
  --em-b: #c5dfd4;
  --skew: 5vh;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Nunito', 'Segoe UI', sans-serif;

  /* ── Размеры: min(vw, vh) даёт рост и по ширине и по высоте окна ─────── */
  --fs-h2:   clamp(26px, min(4.5vw, 6.5vh), 64px);
  --fs-h3:   clamp(16px, min(2.4vw, 3.2vh), 36px);
  --fs-body: clamp(14px, min(1.8vw, 2.4vh), 22px);
  --fs-sm:   clamp(12px, min(1.4vw, 1.8vh), 17px);
  --fs-xs:   clamp(11px, min(1.1vw, 1.4vh), 14px);

  --fw-light:   400;
  --fw-regular: 500;
  --fw-bold:    700;

  --section-gap:    clamp(24px, 5vh, 60px);
  --section-gap-sm: clamp(12px, 2.5vh, 30px);
  --ls-heading:    0.06em;
  --ls-subheading: 0.04em;
  --ls-body:       0.01em;
  --lh-body:       1.8;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { overflow-x: hidden; }
body {
  font-family: var(--f-body);
  background: #1a3028;
  color: #222;
  line-height: 1.65;
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(12px, 4vw, 40px); zoom: var(--sec-zoom, 1); }

h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: var(--ls-heading);
  text-align: center;
  margin-bottom: var(--section-gap);
  line-height: 1.2;
}
/* Декоративная черта под каждым h2 */
h2::after {
  content: '';
  display: block;
  margin: clamp(8px, 1.4vh, 16px) auto 0;
  width: clamp(36px, 12vw, 260px);
  height: 3px;
  background: currentColor;
  opacity: 0.22;
}
h3 {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: var(--ls-subheading);
  text-align: center;
  line-height: 1.3;
}
p {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);
}


/* ══════════════════════════════════════════════════════════════════════
   ТЕКСТУРА — система
   img/MMM.svg тайлится поверх всех секций кроме hero через ::before.

   Настройка через CSS-переменные на каждой секции:
     --tex-gap      размер одного тайла (px)
     --tex-angle    угол наклона паттерна (deg)
     --tex-opacity  видимость слоя (0–1)
     --tex-blend    mix-blend-mode

   Тёмные секции (#1a3028, #111d17):
     filter: invert(1) переводит тёмный SVG в белый,
     mix-blend-mode: screen даёт едва заметное светлое мерцание.
   Светлые секции (#f4f8f6, #fff):
     multiply оставляет тёмный SVG как есть, чуть затемняя фон.
   ══════════════════════════════════════════════════════════════════════ */
.page-section:not(.hero-section)::before {
  content: '';
  position: absolute;
  /* % от блока секции; enough to cover when rotated up to ~20deg;
     родительский overflow:hidden обрезает прямоугольный излишек,
     clip-path — скошенный край. Никакого вылезания в соседние секции. */
  top: -40%; left: -40%;
  width: 180%; height: 180%;
  background-image: url('/img/MMM.svg');
  background-repeat: repeat;
  background-size: var(--tex-gap, 200px) var(--tex-gap, 200px);
  transform: rotate(var(--tex-angle, 12deg));
  transform-origin: center center;
  opacity: var(--tex-opacity, 0.04);
  mix-blend-mode: var(--tex-blend, multiply);
  pointer-events: none;
  z-index: 0;
}

/* .section-inner всегда поверх текстуры */
.section-inner { position: relative; z-index: 1; }

/* ── Тёмные секции: SVG инвертируется в белый, screen его осветляет ───── */
.invite-section {
  --tex-gap:     340px;
  --tex-angle:   15deg;
  --tex-opacity: 0.01;
  --tex-blend:   screen;
}
.invite-section::before { filter: invert(1); }

.flowers-section {
  --tex-gap:     320px;
  --tex-angle:  -14deg;
  --tex-opacity: 0.006;
  --tex-blend:   screen;
}
.flowers-section::before { filter: invert(1); }

/* ── Светлые секции: multiply тихо тёмным SVG ─────────────────────────── */
.calendar-section {
  --tex-gap:     350px;
  --tex-angle:  -8deg;
  --tex-opacity: 0.022;
  --tex-blend:   multiply;
}
.location-section {
  --tex-gap:     380px;
  --tex-angle:   12deg;
  --tex-opacity: 0.020;
  --tex-blend:   multiply;
}
.timeline-section {
  --tex-gap:     360px;
  --tex-angle:  -6deg;
  --tex-opacity: 0.020;
  --tex-blend:   multiply;
}
.dresscode-section {
  --tex-gap:     330px;
  --tex-angle:   10deg;
  --tex-opacity: 0.020;
  --tex-blend:   multiply;
}
.photos-section {
  --tex-gap:     350px;
  --tex-angle:   8deg;
  --tex-opacity: 0.022;
  --tex-blend:   multiply;
}
.form-section {
  --tex-gap:     360px;
  --tex-angle:  -12deg;
  --tex-opacity: 0.018;
  --tex-blend:   multiply;
}


/* ══════════════════════════════════════
   СЕКЦИИ — clip-path
══════════════════════════════════════ */
.page-section {
  position: relative; width: 100%;
  /* overflow: hidden обрезает ::before по прямоугольнику секции;
     clip-path затем вырезает скошенную форму.
     Без этого ::before с inset:-% вылезал в соседние секции */
  overflow: hidden;
}
.page-section:not(.hero-section) {
  margin-top: calc(-1 * var(--skew) - 2px);
}

.section-inner {
  width: 100%;
  height: 100vh;
  margin-top: var(--skew);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* Без этого увеличенные шрифты давали scrollbar внутри секции */
  overflow: hidden;
}

.hero-section {
  height: 120vh;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--skew)));
  z-index: 10; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.calendar-section {
  height: 120vh; background: #f4f8f6;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--skew)));
  z-index: 8;
}
.timeline-section {
  height: 120vh; background: #f4f8f6;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--skew)));
  z-index: 6;
}
.timeline-section .section-inner > .container { max-width: 100%; padding: 0 clamp(20px, 5vw, 60px); }
.flowers-section {
  height: 120vh; background: #111d17;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--skew)));
  z-index: 4;
}
.form-section {
  height: 120vh; background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.invite-section {
  height: 120vh; background: #1a3028;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%);
  z-index: 9;
}
.location-section {
  height: 120vh; background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%);
  z-index: 7;
}
.dresscode-section {
  height: 120vh; background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%);
  z-index: 5;
}
.photos-section {
  height: 120vh; background: #f4f8f6;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--skew)), 0 100%);
  z-index: 3;
}

/* Форма: section-inner прижат к низу */
.form-section .section-inner {
  height: 100vh; margin-top: 0 !important;
  /* overflow:hidden наследуется от .section-inner, clipPath обрезает визуал */
  overflow: hidden; position: relative;
  /* z-index уже 1 от родительского правила */
}
.form-section .section-inner > .container {
  position: absolute;
  width: clamp(280px, 80%, 680px);
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  transition: top 0.45s cubic-bezier(.4,0,.2,1);
}


/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero-bg {
  position: absolute; inset: -40px;
  background: url(/img/main.webp) center center / cover no-repeat;
  filter: blur(4px) brightness(.6); z-index: 0;
}
.hero-content { position: relative; z-index: 1; padding: 0 20px 20vh; }
.hero-content h1 { color: white; }
.hero-date {
  margin: 28px auto 0;
  font-size: clamp(30px, 5.5vw, 60px);
  letter-spacing: 0.12em;
  color: #a8e8cc;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500; font-style: italic;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex; align-items: center; justify-content: center; gap: 0.06em;
}
.drum-group { display: flex; gap: 0; }
.drum-cell {
  overflow: hidden; clip-path: inset(0);
  display: flex; align-items: flex-start; flex-shrink: 0;
  /* Резервируем высоту заранее — JS использует fontSize * 1.2,
     это предотвращает reflow и прыжок имён при запуске анимации */
  height: 1.2em;
}
.drum-col { display: flex; flex-direction: column; will-change: transform; }
.drum-digit {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; min-width: 0.62em;
}
.hero-date-static { font-family: 'Cormorant Garamond', serif; font-style: italic; letter-spacing: 0.14em; }
.date-sep { color: #a8e8cc; padding: 0 0.04em; align-self: center; line-height: 1; }

.hero-names {
  display: flex; align-items: baseline; justify-content: center;
  gap: 0.2em;
}
.hero-name {
  display: inline-block; opacity: 0; color: white;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 400; letter-spacing: 0.02em; line-height: 1;
  padding: 0.15em 0.2em; /* место для курсивных глифов сверху/снизу и по бокам */
}
.hero-name--left  { transform: translateX(-80px); animation: heroSlideLeft  1.1s cubic-bezier(.22,1,.36,1) 0.3s forwards; }
.hero-name--right { transform: translateX(80px);  animation: heroSlideRight 1.1s cubic-bezier(.22,1,.36,1) 0.3s forwards; }
.hero-amp {
  display: inline-block; color: #a8e8cc; opacity: 0; transform: scale(0.6);
  animation: heroAmp 0.8s cubic-bezier(.34,1.56,.64,1) 0.85s forwards;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: clamp(48px, 4.5vw, 108px); line-height: 1;
}
@keyframes heroSlideLeft  { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes heroSlideRight { from { opacity: 0; transform: translateX(80px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes heroAmp        { from { opacity: 0; transform: scale(0.6); }        to { opacity: 1; transform: scale(1); } }


/* ── ПРИГЛАШЕНИЕ ─────────────────────────────────────────────────────────────
   Секция с малым контентом → шрифты крупнее, отступы через vh
─────────────────────────────────────────────────────────────────────────── */
.invite-container {
  text-align: center; max-width: 820px;
  position: relative;
  padding: clamp(32px, 5vh, 64px) clamp(24px, 5vw, 64px);
}

/* Угловые скобки — четыре угла через два псевдоэлемента с box-shadow */
.invite-container::before,
.invite-container::after {
  content: '';
  position: absolute;
  width: clamp(22px, 3.5vw, 40px);
  height: clamp(22px, 3.5vw, 40px);
  border-color: rgba(168, 232, 204, 0.30);
  border-style: solid;
}
.invite-container::before {
  top: 0; left: 0;
  border-width: 3px 0 0 3px;
}
.invite-container::after {
  bottom: 0; right: 0;
  border-width: 0 3px 3px 0;
}

/* Вертикальные декоративные линии по бокам секции */
.invite-section .section-inner::before,
.invite-section .section-inner::after {
  content: '';
  position: absolute;
  top: 18vh; bottom: 18vh;
  width: 5px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(168,232,204,0.18) 25%,
    rgba(168,232,204,0.18) 75%,
    transparent 100%);
  pointer-events: none;
}
.invite-section .section-inner::before { left:  clamp(16px, 4vw, 56px); }
.invite-section .section-inner::after  { right: clamp(16px, 4vw, 56px); }

/* Декоративный флёрон над заголовком */
.invite-heading::before {
  content: '✦';
  display: block;
  font-size: clamp(20px, 2.8vh, 32px);
  color: rgba(168, 232, 204, 0.50);
  letter-spacing: 0.5em;
  margin-bottom: clamp(14px, 2.5vh, 28px);
  font-style: normal;
  font-family: var(--f-body);
}

.invite-heading {
  font-family: var(--f-display);
  font-size: clamp(18px, min(3vw, 4.2vh), 52px);
  font-weight: 500; font-style: italic;
  letter-spacing: var(--ls-heading);
  color: #a8e8cc;
  margin-bottom: clamp(28px, 5vh, 64px);
  line-height: 1.25;
}
.invite-body {
  font-family: var(--f-body);
  font-size: clamp(15px, min(2vw, 2.8vh), 28px);
  font-weight: var(--fw-light); letter-spacing: var(--ls-body);
  color: rgba(255,255,255,.88);
  line-height: 2;
  margin-bottom: clamp(18px, 3.5vh, 44px);
}
.invite-body:last-child { margin-bottom: 0; }
.invite-body strong {
  font-family: var(--f-display); font-style: italic;
  font-weight: 600; font-size: 1.1em; color: #a8e8cc;
}


/* ── КАЛЕНДАРЬ ───────────────────────────────────────────────────────────── */
/* Обёртка вокруг cal-grid для угловых декоративных линий */
.calendar-section .section-inner > .container {
  position: relative;
}
.calendar-section .section-inner > .container::before,
.calendar-section .section-inner > .container::after {
  content: '';
  position: absolute;
  width: clamp(18px, 2.5vw, 32px);
  height: clamp(18px, 2.5vw, 32px);
  border-color: rgba(42, 125, 90, 0.22);
  border-style: solid;
  pointer-events: none;
}
.calendar-section .section-inner > .container::before {
  top: 0; left: clamp(12px, 4vw, 40px);
  border-width: 3px 0 0 3px;
}
.calendar-section .section-inner > .container::after {
  bottom: 0; right: clamp(12px, 4vw, 40px);
  border-width: 0 3px 3px 0;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: clamp(2px, 0.6vw, 8px);
  width: clamp(260px, min(55vh, 58vw), 640px);
  margin: 0 auto;
}
.cal-month-cell {
  grid-column: 1 / -1;
  font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 600;
  color: #888; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: clamp(8px, 1.5vh, 18px); text-align: center;
}
.cal-head {
  font-family: var(--f-body);
  font-size: clamp(11px, min(1.6vw, 2vh), 22px);
  font-weight: 700;
  color: var(--em); text-align: center;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  letter-spacing: .04em;
}
.cal-cell {
  position: relative;
  font-family: var(--f-body);
  font-size: clamp(11px, min(1.6vw, 2vh), 22px); font-weight: 400;
  color: #333; text-align: center;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; line-height: 1;
}
.cal-cell.empty { color: transparent; }
.cal-cell.wedding { font-weight: 700; color: #cc2a2a; font-size: clamp(12px, min(1.8vw, 2.2vh), 24px); }

.cal-circle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; height: 130%;
  pointer-events: none; overflow: visible;
}
.cal-circle path {
  fill: none; stroke: #cc2a2a;
  stroke-width: clamp(1.2px, 0.25vw, 2.5px);
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset 0s;
}


/* ── МЕСТА ПРОВЕДЕНИЯ ────────────────────────────────────────────────────── */
.location-section .section-inner > .container { width: 80%; max-width: 960px; }

.venues-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 20px);
  margin-bottom: clamp(14px, 2.5vh, 28px); width: 100%;
}
.venue-card {
  border: 2px solid var(--em-b); border-radius: 14px;
  padding: clamp(12px, 2vw, 20px); text-align: center; cursor: pointer;
  transition: border-color .22s, background .22s, box-shadow .22s;
  background: #f8fdfa;
}
.venue-card:hover, .venue-card.active {
  border-color: var(--em); background: var(--em-l);
  box-shadow: 0 4px 18px rgba(42,125,90,.15);
}
.venue-icon { font-size: clamp(20px, 3vw, 32px); margin-bottom: 6px; }
.venue-name {
  font-family: var(--f-display);
  font-size: clamp(13px, min(1.6vw, 2.2vh), 22px);
  font-weight: 600; color: var(--em); margin-bottom: 6px;
  letter-spacing: var(--ls-subheading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.venue-addr {
  font-family: var(--f-body); font-size: var(--fs-sm);
  font-weight: var(--fw-light); letter-spacing: var(--ls-body);
  color: #555; line-height: 1.6; margin-bottom: 10px;
}
.venue-link {
  display: inline-block; font-family: var(--f-body); font-size: var(--fs-xs);
  font-weight: 600; color: var(--em); text-decoration: none; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--em-b);
  transition: background .2s, color .2s;
}
.venue-link:hover { background: var(--em); color: white; border-color: var(--em); }

.venue-details { width: 100%; }
.venue-tab { display: none; }
.venue-tab.active { display: block; }
.map-wrapper { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.map-wrapper iframe { display: block; }


/* ── ТАЙМЛАЙН ────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding: 10px 0 20px; }
.timeline-item {
  position: relative; width: 100%;
  padding: clamp(6px, 1vh, 12px) 0;
  min-height: clamp(100px, 20vw, 240px); margin-top: -3vw;
  z-index: 1; opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline-item:first-child { margin-top: 0; }
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-dot {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: clamp(12px, 1.5vw, 18px); height: clamp(12px, 1.5vw, 18px);
  background: var(--em); border: 3px solid #f4f8f6;
  box-shadow: 0 0 0 3px var(--em);
  border-radius: 50%; z-index: 5; transition: transform .35s ease;
}
.timeline-inner {
  display: flex; align-items: center; gap: clamp(10px, 1.5vw, 20px);
  width: 50%; margin-left: 0;
  padding-right: clamp(8px, 3vw, 24px); padding-left: 0;
  flex-direction: row-reverse;
}
.timeline-item:nth-child(even) .timeline-inner {
  flex-direction: row; margin-left: 50%;
  padding-left: clamp(8px, 3vw, 24px); padding-right: 0;
}
.timeline-circle {
  width: clamp(100px, 8vw, 220px); height: clamp(100px, 8vw, 220px);
  border-radius: 50%; background: var(--em-l); border: 2px solid var(--em-b);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(10px, 1.4vw, 16px); color: var(--em); flex-shrink: 0;
  overflow: hidden;
}
.timeline-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.timeline-text { flex: 1; }
.timeline-text h3 {
  margin-bottom: 4px; width: 100%; font-size: var(--fs-h3);
  text-align: inherit; font-family: var(--f-display); font-weight: 500;
  letter-spacing: var(--ls-subheading); white-space: nowrap;
}
.timeline-time {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  color: var(--em); display: block; margin-bottom: 2px;
  font-size: clamp(18px, min(2.4vw, 3.2vh), 36px);
  letter-spacing: var(--ls-heading);
}
.timeline-item:nth-child(odd)  .timeline-text,
.timeline-item:nth-child(odd)  .timeline-text h3,
.timeline-item:nth-child(odd)  .timeline-text .timeline-time { text-align: right; }
.timeline-item:nth-child(even) .timeline-text,
.timeline-item:nth-child(even) .timeline-text h3,
.timeline-item:nth-child(even) .timeline-text .timeline-time { text-align: left; }


/* ── ДРЕСС-КОД ───────────────────────────────────────────────────────────── */
.dresscode-section .section-inner {
  flex-direction: column; justify-content: center; align-items: center;
  margin-top: var(--skew); padding: clamp(10px, 2vh, 24px) 0;
}
/* Тонкая разделительная линия между палитрой и фото */
.dc-palette {
  display: flex; justify-content: center;
  gap: clamp(10px, 2vw, 20px); flex-shrink: 0;
  margin-bottom: 0;
  padding-bottom: clamp(14px, 2.5vh, 28px);
  position: relative;
}
.dc-palette::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: clamp(40px, 10vw, 80px);
  height: 1px;
  background: rgba(42, 125, 90, 0.22);
}
.dc-swatch {
  width: clamp(32px, min(4vw, 5vh), 56px); height: clamp(32px, min(4vw, 5vh), 56px);
  border-radius: 50%; position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  cursor: default; transition: transform .2s; flex-shrink: 0;
}
.dc-swatch:hover { transform: scale(1.12); }
.dc-tip {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: rgba(0,0,0,.75); color: white;
  font-size: 10px; padding: 3px 7px; border-radius: 4px;
  white-space: nowrap; pointer-events: none;
}
.dc-swatch:hover .dc-tip { display: block; }
.dc-photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1vw, 14px);
  width: clamp(260px, min(68%, 68vh), 720px);
  margin: clamp(14px, 2.5vh, 28px) auto 0;
}
.dc-photo-slot { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.dc-photo-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 8px; cursor: zoom-in;
  transition: transform 0.35s ease;
}
.dc-photo-slot:hover .dc-photo-img { transform: scale(1.06); }


/* ── ВНИМАНИЕ (ЦВЕТЫ) ────────────────────────────────────────────────────── */
.flowers-section .section-inner { flex-direction: column; text-align: center; margin-top: var(--skew); }
.flowers-section > .container { width: 100%; }

/* Вертикальные декоративные линии по бокам */
.flowers-section .section-inner::before,
.flowers-section .section-inner::after {
  content: '';
  position: absolute;
  top: 16vh; bottom: 16vh;
  width: 5px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(168,232,204,0.14) 30%,
    rgba(168,232,204,0.14) 70%,
    transparent 100%);
  pointer-events: none;
}
.flowers-section .section-inner::before { left:  clamp(16px, 4vw, 56px); }
.flowers-section .section-inner::after  { right: clamp(16px, 4vw, 56px); }

.no-flowers-big {
  font-family: var(--f-display);
  font-size: clamp(28px, min(5vw, 7vh), 80px);
  font-weight: 400; font-style: italic; color: #f4f8f6;
  letter-spacing: var(--ls-heading);
  margin-bottom: clamp(18px, 3vh, 40px); line-height: 1.2;
  /* Горизонтальные линии-флангиры по обе стороны от заголовка */
  display: flex; align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
}
.no-flowers-big::before,
.no-flowers-big::after {
  content: '';
  flex: 1;
  max-width: clamp(30px, 8vw, 80px);
  height: 3px;
  background: rgba(244, 248, 246, 0.22);
  flex-shrink: 0;
}
.flowers-body {
  margin: 0 auto clamp(16px, 3vh, 40px);
  line-height: 1.9;
  font-size: clamp(12px, min(1.5vw, 2.2vh), 22px);
  font-weight: var(--fw-light); letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--f-body); color: rgb(168 207 191);
}
.flowers-body b { font-weight: var(--fw-bold); }
.flowers-img-placeholder {
  width: 100%; max-width: clamp(200px, 30vh, 320px);
  margin: 0 auto clamp(14px, 2.5vh, 36px);
  display: flex; align-items: center; justify-content: center;
}
.flowers-img-placeholder span { display: flex; align-items: center; justify-content: center; width: 100%; }
.flowers-img-placeholder img  { width: 100%; height: auto; max-width: 260px; display: block; }
.no-flowers-small {
  font-family: var(--f-body); font-size: var(--fs-sm);
  font-weight: var(--fw-light); letter-spacing: .08em; text-transform: uppercase;
  color: rgb(168 207 191); line-height: var(--lh-body);
}
.no-flowers-small b { font-weight: var(--fw-bold); }


/* ── ФОТО И ВИДЕО ────────────────────────────────────────────────────────── */
.photos-container {
  text-align: center; max-width: 700px;
  position: relative;
  padding: clamp(28px, 4.5vh, 56px) clamp(20px, 4vw, 48px);
}
/* Угловые скобки */
.photos-container::before,
.photos-container::after {
  content: '';
  position: absolute;
  width: clamp(20px, 3vw, 36px);
  height: clamp(20px, 3vw, 36px);
  border-color: rgba(42, 125, 90, 0.28);
  border-style: solid;
}
.photos-container::before {
  top: 0; left: 0;
  border-width: 3px 0 0 3px;
}
.photos-container::after {
  bottom: 0; right: 0;
  border-width: 0 3px 3px 0;
}

/* Декоративный флёрон над h2 */
.photos-container h2::before {
  content: '✦';
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: clamp(20px, 2.8vh, 32px);
  line-height: 1;

  color: rgba(42, 125, 90, 0.45);
  margin-bottom: clamp(10px, 1.8vh, 20px);

  font-family: var(--f-body);
  font-weight: 400;
}
.photos-text {
  font-family: var(--f-body);
  font-size: clamp(14px, min(1.8vw, 2.6vh), 26px);
  font-weight: var(--fw-light); letter-spacing: var(--ls-body);
  color: #555; line-height: 2;
  margin-bottom: clamp(24px, 5vh, 60px);
}
.photos-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: clamp(12px, 2vh, 18px) clamp(24px, 3.5vw, 44px);
  background: transparent; color: var(--em);
  border: 2px solid var(--em); border-radius: 40px; text-decoration: none;
  font-family: var(--f-body); font-size: clamp(13px, min(1.4vw, 1.9vh), 18px);
  font-weight: 700; letter-spacing: .04em;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.photos-btn:hover { background: var(--em); color: white; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(42,125,90,.3); }
.photos-btn svg { flex-shrink: 0; width: 1.2em; height: 1.2em; }


/* ── ФОРМА ───────────────────────────────────────────────────────────────── */
.form-section .section-inner {
  height: 100vh; overflow: hidden; position: relative; clip-path: inset(0);
}
.form-section .section-inner > .container {
  position: absolute; width: clamp(280px, 80%, 680px); left: 50%;
  transform: translateX(-50%) translateY(-50%); top: 50%;
  transition: top 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
  max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  -ms-overflow-style: none; scrollbar-width: none;
}
.form-section .section-inner > .container::-webkit-scrollbar { display: none; }

form { width: 100%; display: flex; flex-direction: column; gap: clamp(10px, 2vh, 18px); }
input[type="text"], textarea {
  padding: clamp(10px, 1.5vh, 14px) 15px; border: 1px solid #ccc; border-radius: 10px;
  font-family: var(--f-body); font-size: var(--fs-sm); font-weight: var(--fw-light);
  transition: border-color .25s; width: 100%; background: #fafafa;
}
textarea { resize: none; }
input:focus, textarea:focus { outline: none; border-color: var(--em); background: #fff; }
button[type="submit"] {
  width: 100%; padding: clamp(11px, 1.8vh, 15px);
  background: var(--em); color: white; border: none; border-radius: 10px;
  font-family: var(--f-body); font-size: var(--fs-sm); font-weight: var(--fw-bold);
  letter-spacing: 0.10em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, opacity .25s;
}
button[type="submit"]:hover:not(:disabled) { background: var(--em-d); }
button[type="submit"]:disabled { opacity: .38; cursor: not-allowed; }
.attendance-block { display: flex; flex-direction: column; gap: clamp(8px, 1.5vh, 14px); }
.radio-group { display: flex; justify-content: center; gap: 12px; }
.radio-group label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: clamp(8px, 1.2vh, 12px) 14px; border: 2px solid var(--em-b); border-radius: 40px;
  cursor: pointer; font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 600;
  background: var(--em-l); white-space: nowrap;
  transition: border-color .22s, background .22s, color .22s; user-select: none;
}
.radio-group label:hover { border-color: var(--em); }
.radio-group input[type="radio"] { display: none; }
.radio-group label.active { border-color: var(--em); background: var(--em); color: white; }
.extra-fields { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .55s cubic-bezier(.4,0,.2,1), opacity .4s ease; }
.extra-fields.open { max-height: 700px; opacity: 1; }
.extra-fields-inner { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.drinks-block { border: 1px solid var(--em-b); border-radius: 11px; padding: 12px 14px; background: var(--em-l); }
.drinks-title {
  font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 700;
  color: var(--em); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.drinks-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.drink-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 13px; border: 1.5px solid var(--em-b); border-radius: 28px;
  cursor: pointer; font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 500;
  background: white; white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s; user-select: none;
}
.drink-chip:hover { border-color: var(--em); }
.drink-chip input[type="checkbox"] { accent-color: var(--em); width: 12px; height: 12px; }
.drink-chip:has(input:checked) { border-color: var(--em); background: var(--em); color: white; }
#formStatus {
  text-align: center; min-height: 18px;
  font-family: var(--f-body); font-size: var(--fs-sm); font-weight: var(--fw-light);
  color: var(--em);
}


/* ── НАВИГАЦИОННЫЕ СТРЕЛКИ ───────────────────────────────────────────────── */
.nav-arrow {
  position: fixed; right: 24px; z-index: 9999;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--em-b); background: rgba(255,255,255,.92);
  color: var(--em); font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 14px rgba(0,0,0,.12);
  transition: opacity .3s, background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.nav-arrow:hover { background: var(--em); color: white; border-color: var(--em); }
.nav-up   { bottom: 78px; }
.nav-down { bottom: 26px; }
.nav-arrow.hidden { opacity: 0; pointer-events: none; }


/* ── ЛАЙТБОКС ────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(0,0,0,.88); }
.lightbox-img {
  position: relative; z-index: 1;
  max-width: 85vw; max-height: 85vh;
  border-radius: 10px; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  background: none; border: none; font-size: 26px; color: white;
  cursor: pointer; opacity: .7;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.15); border: none; color: white;
  font-size: 24px; cursor: pointer; padding: 10px 16px; border-radius: 8px;
  top: 50%; transform: translateY(-50%);
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }


/* ── VENUE GALLERY ───────────────────────────────────────────────────────── */
.venue-gallery {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: clamp(8px, 1.5vh, 16px); position: relative;
}
.vg-track-wrap { flex: 1; overflow: hidden; border-radius: 10px; }
.vg-track { display: flex; gap: clamp(4px, 0.8vw, 8px); }
.vg-slot {
  flex: 1; aspect-ratio: 4/3; min-width: 0;
  border-radius: 10px; overflow: hidden; background: #d4e9df;
}
.vg-slot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  cursor: zoom-in; transition: transform .25s ease; border-radius: 10px;
}
.vg-slot img:hover { transform: scale(1.04); }
.vg-btn {
  background: rgba(255,255,255,.92); border: 2px solid var(--em-b); color: var(--em);
  border-radius: 50%; width: 36px; height: 36px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
  line-height: 1; padding: 0;
}
.vg-btn:hover { background: var(--em); color: white; border-color: var(--em); }


/* ── BOUQUET ANIMATION ───────────────────────────────────────────────────── */
.bouquet-wrap {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center; width: 100%;
}
.bouquet-anim-svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110%; height: 110%;
  pointer-events: none; overflow: visible; visibility: hidden;
}
.bouquet-border {
  fill: none; stroke: #cc2a2a; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 754; stroke-dashoffset: 754;
}
.bouquet-cross-1, .bouquet-cross-2 {
  stroke: #cc2a2a; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
}
.bouquet-anim-svg.playing .bouquet-border { animation: bouquetBorder 1.4s cubic-bezier(.4,0,.2,1) 0s forwards; }
.bouquet-anim-svg.playing .bouquet-cross-1 { animation: bouquetCross 0.5s ease 1.5s forwards; }
.bouquet-anim-svg.playing .bouquet-cross-2 { animation: bouquetCross 0.5s ease 2.1s forwards; }
@keyframes bouquetBorder { to { stroke-dashoffset: 0; } }
@keyframes bouquetCross  { to { stroke-dashoffset: 0; } }


/* ════════════════════════════════════════
   МОБИЛЬНЫЕ СТИЛИ
════════════════════════════════════════ */
@media (max-width: 768px) {
  .venue-card .venue-addr,
  .venue-card .venue-link { display: none !important; }
  .venue-card {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 10px 6px; gap: 4px;
  }
  .venue-icon { font-size: 22px; margin-bottom: 2px; }
  .venue-name { font-size: 10px; margin-bottom: 0; white-space: normal; }
  .vg-slot { aspect-ratio: 3/2; }
  .vg-btn { width: 30px; height: 30px; font-size: 18px; }

  /* Угловые скобки */
  .photos-container::before,
  .photos-container::after {
    visibility: hidden;
  }
  .invite-container::before,
  .invite-container::after {
    visibility: hidden;
  }

}

@media (max-width: 768px) {
  :root { --skew: 3vh; }
  .nav-arrow { right: 12px; width: 36px; height: 36px; font-size: 15px; }
  .nav-up { bottom: 60px; } .nav-down { bottom: 16px; }
  .hero-content { padding: 0 16px 14vh; }
  .venues-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  .timeline-item { padding: 0; min-height: clamp(80px, 25vw, 120px); position: relative; }
  .timeline-inner,
  .timeline-item:nth-child(even) .timeline-inner { display: contents; }
  .timeline-circle {
    width: clamp(80px, 26vw, 130px); height: clamp(80px, 26vw, 130px);
    position: absolute; top: 50%; transform: translateY(-50%);
  }
  .timeline-item:nth-child(odd)  .timeline-circle { left: calc(50% - 25vw); transform: translate(-50%, -50%); }
  .timeline-item:nth-child(even) .timeline-circle { left: calc(50% + 25vw); transform: translate(-50%, -50%); }
  .timeline-text { position: absolute; width: auto; top: calc(50% + clamp(40px, 13vw, 65px) + 6px); white-space: nowrap; }
  .timeline-item:nth-child(odd)  .timeline-text { left: calc(50% - 25vw); transform: translateX(-50%); }
  .timeline-item:nth-child(even) .timeline-text { left: calc(50% + 25vw); transform: translateX(-50%); }
  .timeline-item:nth-child(odd)  .timeline-text,
  .timeline-item:nth-child(odd)  .timeline-text h3,
  .timeline-item:nth-child(odd)  .timeline-text .timeline-time,
  .timeline-item:nth-child(even) .timeline-text,
  .timeline-item:nth-child(even) .timeline-text h3,
  .timeline-item:nth-child(even) .timeline-text .timeline-time { text-align: center; }
  .timeline-dot { left: 50%; top: 50%; }

  .cal-grid { width: min(90vw, 340px) !important; }
  .cal-head, .cal-cell { font-size: clamp(9px, 3.5vw, 14px) !important; }
  .cal-cell.wedding { font-size: clamp(10px, 4vw, 16px) !important; }

  .dc-photos { grid-template-columns: repeat(2, 1fr); width: 88%; gap: 8px; }
  .dc-photo-slot { aspect-ratio: 1; }
  .dc-palette { gap: 8px; }

  .form-section .section-inner > .container { width: 92%; }
  .radio-group { flex-direction: column; }
  .radio-group label { flex: none; justify-content: center; }

  /* Мобильная текстура — тайл крупнее, наклон меньше */
  .page-section:not(.hero-section) {
    --tex-gap:   160px;
    --tex-angle: 8deg;
  }
}

@media (max-width: 480px) {
  .dc-photos { grid-template-columns: repeat(2, 1fr); width: 94%; }
  .dc-photo-slot { aspect-ratio: 1; }
  .venues-grid { gap: 8px; }
}

/* ── LANDSCAPE НА ТЕЛЕФОНЕ ───────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .page-section,
  .hero-section, .calendar-section, .timeline-section, .flowers-section,
  .form-section, .invite-section, .location-section, .dresscode-section, .photos-section {
    height: auto; min-height: 100svh;
  }
  .section-inner { height: auto; min-height: calc(100svh - var(--skew)); padding: clamp(12px, 4vh, 32px) 0; align-items: flex-start; }
  .hero-section { min-height: 100svh; }
  .hero-content { padding: 0 16px 6vh; }
  .cal-grid { width: min(80vh, 480px) !important; }
  .timeline-item { padding: 8px 0; }
  .timeline-circle { width: 44px !important; height: 44px !important; }
  .vg-slot { aspect-ratio: 16/7; }
  .map-wrapper iframe { height: 120px !important; }
  .dc-photos { grid-template-columns: repeat(6, 1fr); width: 96%; gap: 6px; }
  .dc-photo-slot { aspect-ratio: 1; }
  .form-section .section-inner { overflow-y: auto; }
  .form-section .section-inner > .container { position: relative; top: auto !important; left: auto; transform: none; width: 92%; margin: 0 auto; }
  /* Ландшафт — текстура без наклона */
  .page-section:not(.hero-section) { --tex-angle: 0deg; }
}
