/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #C9A96E;
  --gold-dark: #E098A0;
  --cream: #FDF8F0;
  --burgundy: #3D2010;
  --text: #3D2C1E;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  background: #f5f0e8;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== BOOK OVERLAY ===== */
.book-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: #0d0d0d;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  cursor: pointer;
}
.book-overlay.opened { opacity: 0; visibility: hidden; pointer-events: none; }

.overlay-bg {
  position: absolute; inset: 0;
  background: #0d0d0d url('images/Fon12.jpg') center / cover no-repeat;
  opacity: 0.85;
  z-index: 0;
}

.book-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  perspective: clamp(800px, 90vw, 1400px); perspective-origin: 50% 50%;
}

.book {
  position: relative;
  width: clamp(250px, 58vw, 460px);
  height: clamp(360px, 80vh, 660px);
  max-height: calc(100vh - 120px);
  transform-style: preserve-3d;
}

.book-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #111 100%);
  box-shadow:
    0 clamp(4px, 1vw, 10px) clamp(10px, 3vw, 25px) rgba(0,0,0,0.5),
    0 0 0 clamp(1px, 0.2vw, 2px) #1a1a1a,
    0 0 0 clamp(2px, 0.4vw, 4px) #2a2a2a,
    0 0 0 clamp(3px, 0.6vw, 6px) #3a3a3a;
  z-index: 0;
}

.book-spread {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #FDF8F0 0%, #F5ECD7 8%, #EDE4CC 50%, #E8DCC0 92%, #DDD4B8 100%);
  z-index: 2;
  box-shadow: inset 0 0 0 2px rgba(201,169,110,0.15), inset 0 0 clamp(12px, 3vw, 28px) rgba(0,0,0,0.03);
}

.spread-inner { padding: 0; width: 100%; height: 100%; display: flex; flex-direction: row; }

.spread-left-col {
  width: 50%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}
.spread-right-col { width: 50%; height: 100%; overflow: hidden; }
.spread-photo { width: 100%; height: 100%; background: center/cover no-repeat; }

.spread-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(8px, 1vw, 11px);
  color: var(--gold-dark); letter-spacing: clamp(2px, 0.5vw, 5px);
  text-transform: uppercase; font-weight: 400;
  margin-bottom: clamp(6px, 1vh, 12px);
}

.spread-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3.5vw, 30px);
  color: var(--burgundy); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.5px;
  margin-bottom: clamp(8px, 1.5vh, 16px);
}

.spread-line { width: clamp(24px, 5vw, 48px); height: 2px; background: var(--gold-dark); margin-bottom: clamp(8px, 1.5vh, 16px); }

.spread-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(12px, 1.6vw, 15px);
  color: var(--text); line-height: 1.5;
  margin-bottom: clamp(6px, 1vh, 12px);
}

/* ===== BOOK COVER ===== */
.book-cover {
  position: absolute; inset: 0;
  background: url('images/oblogka.jpg') center/cover no-repeat, linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #050505 100%);
  box-shadow:
    0 clamp(4px, 1vw, 10px) clamp(10px, 3vw, 25px) rgba(0,0,0,0.5),
    0 0 0 clamp(1px, 0.2vw, 2px) #1a1a1a,
    0 0 0 clamp(1.5px, 0.3vw, 2.5px) rgba(255,255,255,0.08),
    0 0 0 clamp(2.5px, 0.6vw, 5px) #2a2a2a,
    0 0 0 clamp(3px, 0.7vw, 6px) rgba(255,255,255,0.05),
    0 0 0 clamp(4px, 1vw, 8px) #3a3a3a;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: left center; transform-style: preserve-3d;
  z-index: 10; cursor: pointer;
}

.book-cover.opening { animation: coverOpen 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes coverOpen {
  0%   { transform: rotateY(0deg); opacity: 1; }
  100% { transform: rotateY(-160deg); opacity: 0.2; }
}

.cover-masthead {
  position: relative; z-index: 2; width: 100%; text-align: center;
  padding: clamp(6px, 1.5vh, 14px) clamp(8px, 2vw, 20px) 0;
}
.cover-issue {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(7px, 1vw, 10px);
  color: rgba(255,255,255,0.7); letter-spacing: clamp(1px, 0.3vw, 3px);
  font-weight: 300; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.cover-body {
  position: relative; z-index: 2; width: 100%; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.cover-headline {
  position: relative; z-index: 2; width: 100%;
  padding: clamp(4px, 1vh, 10px) clamp(10px, 3vw, 28px) 0; text-align: center;
}
.cover-title-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(13px, 3.2vw, 30px);
  color: #fff; font-weight: 900;
  letter-spacing: clamp(1px, 0.3vw, 2px);
  text-shadow: 0 3px 16px rgba(0,0,0,0.6);
  line-height: 1; white-space: nowrap;
}

.cover-divider { width: clamp(30px, 8vw, 70px); height: 2px; background: rgba(255,255,255,0.4); margin: clamp(6px, 1vh, 14px) auto; position: relative; z-index: 2; }

.cover-feature {
  position: relative; z-index: 2; align-self: flex-start;
  text-align: left; padding-left: clamp(12px, 3vw, 30px);
  margin-top: 35%;
}
.cover-feat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(7px, 1vw, 10px);
  color: rgba(255,255,255,0.8); letter-spacing: clamp(1px, 0.3vw, 3px);
  font-weight: 400; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin-bottom: clamp(3px, 0.6vh, 6px);
}
.cover-feat-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(13px, 2.4vw, 22px);
  color: #fff; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6); line-height: 1.3;
}

.cover-footer {
  position: relative; z-index: 2; width: 100%; text-align: center;
  margin-top: auto; padding: 0 clamp(10px, 3vw, 28px) clamp(12px, 2.5vh, 24px);
}
.cover-save {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(18px, 3.5vw, 34px); color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6); line-height: 1;
  margin-bottom: clamp(2px, 0.5vh, 6px);
}
.cover-date {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 2vw, 18px); color: rgba(255,255,255,0.9);
  letter-spacing: clamp(2px, 0.5vw, 5px); font-weight: 300;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ===== HINT ===== */
.hint-wrapper {
  position: absolute; bottom: clamp(12px, 2.5vh, 30px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: opacity 0.4s ease;
}
.hint-wrapper.hidden { opacity: 0; }
.hint-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 2.4vw, 22px); color: #000;
  animation: hintPulse 2s ease-in-out infinite;
}
.hint-arrow { font-size: clamp(20px, 3vw, 32px); color: #000; animation: hintBounce 1.5s ease-in-out infinite; }
@keyframes hintPulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
@keyframes hintBounce { 0%,100%{transform:translateY(0);opacity:0.5} 50%{transform:translateY(8px);opacity:1} }

/* ===== SITE CONTENT ===== */
.site-content { opacity: 0; transform: translateY(30px); transition: opacity 1s ease 0.3s, transform 1s ease 0.3s; }
.site-content.visible { opacity: 1; transform: translateY(0); }

/* ===== GLAMOUR SECTIONS ===== */
section { position: relative; overflow: hidden; }

.sec-dark  { background: #0d0d0d; padding: clamp(40px, 8vh, 80px) clamp(20px, 6vw, 48px); }
.sec-light { background: #f5f0e8; padding: clamp(50px, 10vh, 100px) clamp(20px, 6vw, 48px); }
/* ===== LOCATION ===== */
.sec-img {
  padding: clamp(60px, 12vh, 120px) clamp(20px, 6vw, 48px);
  background: center/cover no-repeat;
  position: relative;
}

.sec-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.2); z-index: 0; }
#rsvp .sec-shade { background: rgba(0,0,0,0.15); }

#location .sec-kicker { font-size: clamp(22px, 3vw, 28px) !important; }
#location .sec-headline { font-size: clamp(42px, 8vw, 68px) !important; }
#timing .sec-kicker { font-size: clamp(22px, 3vw, 28px) !important; }
#dresscode .sec-kicker { font-size: clamp(22px, 3vw, 28px) !important; }
#dresscode .sec-headline { margin-bottom: clamp(10px, 2vh, 16px); }
#dresscode .sec-line { margin-bottom: clamp(12px, 2.5vh, 20px); }
#details .sec-kicker { font-size: clamp(22px, 3vw, 28px) !important; }
#contacts .sec-kicker { font-size: clamp(22px, 3vw, 28px) !important; }
#rsvp .sec-kicker { font-size: clamp(22px, 3vw, 28px) !important; }

.sec-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

.sec-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: clamp(5px, 0.9vw, 9px);
  text-transform: uppercase; font-weight: 500;
  color: rgba(255,255,255,0.35); margin-bottom: clamp(16px, 3vh, 24px);
}
.sec-kicker.dark { color: var(--gold-dark); }

.sec-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 900; line-height: 0.92;
  letter-spacing: -2px;
  color: #fff; margin-bottom: clamp(20px, 3.5vh, 32px);
}
.sec-headline.dark { color: var(--burgundy); }

.sec-line { width: clamp(48px, 9vw, 80px); height: 4px; background: rgba(255,255,255,0.15); margin-bottom: clamp(24px, 5vh, 40px); }
.sec-line.dark { background: var(--gold-dark); }

.sec-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700; color: #fff; line-height: 1.15;
  margin-bottom: clamp(12px, 2.5vh, 20px);
}

.sec-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.75; color: rgba(255,255,255,0.65);
  margin-bottom: clamp(16px, 3vh, 26px);
  font-weight: 400; letter-spacing: 0.2px;
}
.sec-text.dark { color: var(--text); }
.sec-text strong { color: #fff; font-weight: 600; }

.hero { min-height: 100vh; display: flex; align-items: stretch; padding: 0; position: relative; }

.hero-img { width: 54%; min-height: 100vh; background-size: cover; background-repeat: no-repeat; background-position: center 35%; position: relative; }
.hero-img::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 140px; background: linear-gradient(to right, transparent 0%, rgba(245,240,232,0.4) 40%, rgba(245,240,232,0.85) 70%, rgba(245,240,232,0.98) 100%); z-index: 1; }
.hero-overlay { width: 46%; display: flex; align-items: center; background: #f5f0e8; }
.hero-copy { padding: clamp(36px, 7vw, 72px); }

.hero-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: clamp(5px, 0.9vw, 9px);
  text-transform: uppercase; color: var(--gold-dark);
  font-weight: 500; margin-bottom: clamp(16px, 3vh, 24px);
}
.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: clamp(4px, 0.8vw, 8px);
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: clamp(20px, 3.5vh, 28px);
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 7.5vw, 76px);
  font-weight: 900; color: var(--burgundy);
  line-height: 0.9; letter-spacing: -2px;
  margin-bottom: clamp(20px, 3.5vh, 32px);
}

.hero-line { width: clamp(48px, 9vw, 80px); height: 4px; background: var(--gold-dark); margin-bottom: clamp(24px, 5vh, 40px); }

.hero-invite {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.75; color: var(--burgundy);
  font-weight: 400; letter-spacing: 0.2px;
}

/* ===== MAP BUTTON ===== */
.btn-map {
  display: inline-block;
  padding: clamp(14px, 3vh, 18px) clamp(28px, 6vw, 40px);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(10px, 1.3vw, 12px);
  letter-spacing: 4px; text-transform: uppercase;
  color: #fff; background: #0d0d0d;
  text-decoration: none; font-weight: 500;
  margin-top: clamp(20px, 4vh, 32px);
}

/* ===== TIMING ===== */
.timing-list { display: flex; flex-direction: column; }
.timing-row {
  display: flex; align-items: baseline; gap: clamp(20px, 5vw, 36px);
  padding: clamp(20px, 3.5vh, 30px) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.timing-row:last-child { border-bottom: none; padding-bottom: 0; }
.timing-row:first-child { padding-top: 0; }

.timing-time {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900; color: var(--gold-dark);
  min-width: clamp(64px, 14vw, 90px); flex-shrink: 0;
  letter-spacing: -1px;
}
.timing-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 600; color: var(--text); line-height: 1.3;
}

/* ===== DRESS CODE ===== */
.dress-grid { display: flex; gap: clamp(24px, 5vw, 48px); }
.dress-group { flex: 1; padding: clamp(20px, 4vh, 30px) 0 0; }
.dress-group h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; color: #fff;
  margin-bottom: clamp(8px, 1.5vh, 16px);
  letter-spacing: -0.5px;
}
.dress-colors {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  height: clamp(220px, 32vh, 380px);
  margin-top: 0;
}

.dress-colors .swatch-img {
  width: clamp(80px, 14vw, 120px);
  height: clamp(120px, 21vw, 180px);
  border-radius: 6px;
  background: center/cover no-repeat;
  border: 2px solid rgba(255,255,255,0.15);
  position: absolute;
  transform-origin: bottom center;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.dress-colors .swatch-img:hover {
  transform: translateY(-24px) rotate(0deg) scale(1.2);
  border-color: var(--gold-dark);
  z-index: 20;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.dress-colors .swatch-img:active {
  transform: translateY(-24px) rotate(0deg) scale(1.2);
  border-color: var(--gold-dark);
  z-index: 20;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

/* ===== RSVP ===== */
.rsvp-btns { display: flex; gap: clamp(14px, 3vw, 24px); margin-top: clamp(24px, 5vh, 40px); }
.btn-rsvp {
  display: inline-block;
  padding: clamp(14px, 3vh, 18px) clamp(32px, 7vw, 56px);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 4px; text-transform: uppercase;
  text-decoration: none; font-weight: 500; cursor: pointer;
}
.btn-yes { background: #fff; color: #0d0d0d; }
.btn-no { border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); background: transparent; }

.rsvp-thanks {
  display: none;
  margin-top: clamp(24px, 5vh, 40px);
}
.rsvp-thanks.active { display: block; }
.rsvp-thanks p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.75; color: rgba(255,255,255,0.65);
  font-weight: 400; letter-spacing: 0.2px;
}

/* ===== CONTACTS ===== */
.contact-card {
  margin-top: clamp(24px, 5vh, 40px);
  border-left: 4px solid var(--gold-dark);
  padding-left: clamp(20px, 4vw, 28px);
}
.contact-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900; color: var(--burgundy);
  margin-bottom: 8px; letter-spacing: -0.5px;
}
.contact-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--text); letter-spacing: 2px;
  text-decoration: none; border-bottom: 1px solid var(--gold-dark);
  font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: clamp(60px, 12vh, 100px) clamp(16px, 4vw, 32px);
  background: #0d0d0d;
  color: #fff;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

.footer > * {
  position: relative;
  z-index: 1;
}
.footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.4vw, 24px);
  margin-bottom: 4px; font-weight: 400;
}
.footer-date {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(10px, 1.2vw, 11px) !important;
  letter-spacing: 6px; color: rgba(255,255,255,0.35);
  margin-bottom: 8px !important; font-weight: 400 !important;
}

.countdown {
  display: flex; justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  margin-bottom: clamp(36px, 7vh, 56px);
}
.countdown-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900; color: #fff;
  line-height: 1; letter-spacing: -1px;
}
.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(8px, 1vw, 10px);
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); font-weight: 400;
}

.footer-chapter {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: clamp(20px, 4vh, 28px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.footer-quote {
  margin-top: clamp(20px, 4vh, 28px) !important;
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(26px, 4vw, 40px) !important;
  color: var(--gold); font-style: italic; font-weight: 400 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero-img { width: 100%; min-height: 60vh; background-size: cover; background-repeat: no-repeat; background-position: center 35%; position: relative; }
  .hero-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(to bottom, transparent 0%, rgba(245,240,232,0.5) 40%, rgba(245,240,232,0.9) 70%, rgba(245,240,232,0.98) 100%); }
  .hero-overlay { width: 100%; }
  .hero-headline { font-size: clamp(32px, 8vw, 48px); }
  section { padding: clamp(50px, 10vh, 80px) clamp(16px, 4vw, 28px); }
  .sec-headline { font-size: clamp(28px, 7vw, 44px); }

  .dress-grid { flex-direction: column; gap: 0; }
  #dresscode { padding: clamp(20px, 4vh, 30px) clamp(20px, 6vw, 48px) clamp(10px, 2vh, 15px); }
  .dress-group { padding: 0 !important; }
  .dress-group h3 { text-align: center !important; padding-left: 0 !important; margin-left: 0 !important; margin-bottom: 4px; }
  .dress-colors { height: clamp(220px, 36vh, 310px); overflow: visible; }
  .dress-colors .swatch-img {
    width: clamp(90px, 24vw, 120px);
    height: clamp(130px, 36vw, 175px);
    margin-left: -44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .dress-colors .swatch-img:hover,
  .dress-colors .swatch-img:active {
    transform: translateY(-24px) rotate(0deg) scale(1.2);
    z-index: 20;
  }
}

@media (max-width: 600px) {
  .book {
    width: clamp(220px, 75vw, 340px);
    height: clamp(300px, 55vh, 420px);
    max-height: calc(100vh - 80px);
  }
  .spread-inner { flex-direction: column; }
  .spread-left-col, .spread-right-col { width: 100%; height: 50%; }
  .spread-left-col { order: 2; justify-content: flex-start; padding-top: clamp(8px, 2vh, 16px); }
  .spread-right-col { order: 1; }
  .spread-photo { background-position: center bottom !important; }
  .dress-grid { flex-direction: column; gap: 0; }
  #dresscode { padding: clamp(16px, 3vh, 24px) clamp(16px, 4vw, 28px) clamp(8px, 1.5vh, 12px); }
  .dress-group { padding: 0 !important; }
  .dress-group h3 { text-align: center !important; padding-left: 0 !important; margin-left: 0 !important; margin-bottom: 2px; }
  .dress-colors { height: clamp(200px, 34vh, 290px); overflow: visible; }
  .dress-colors .swatch-img {
    width: clamp(85px, 22vw, 115px);
    height: clamp(125px, 34vw, 165px);
    margin-left: -42px;
    will-change: transform;
    transform: translate3d(0, 0, 0) rotate(0deg);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .dress-colors .swatch-img:hover,
  .dress-colors .swatch-img:active {
    transform: translateY(-24px) rotate(0deg) scale(1.2);
    z-index: 20;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal {
  background: rgb(245, 240, 232);
  padding: clamp(24px, 5vw, 40px);
  max-width: 420px; width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal-header {
  display: flex; justify-content: flex-end; align-items: center;
  margin-bottom: clamp(8px, 1.5vh, 12px);
}

.modal-close {
  background: none; border: none; color: rgba(61,44,30,0.4);
  font-size: 28px; cursor: pointer;
  transition: color 0.3s ease;
  padding: 0 4px;
}
.modal-close:hover { color: var(--burgundy); }

.modal-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--burgundy);
  line-height: 1.6; margin-bottom: clamp(16px, 3vh, 20px);
}

.modal-input {
  width: 100%;
  padding: clamp(12px, 2vh, 16px);
  margin-bottom: clamp(12px, 2vh, 16px);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(61,44,30,0.15);
  color: var(--burgundy);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 2vw, 18px);
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-input:focus {
  border-color: var(--gold-dark);
}

.modal-input::placeholder {
  color: rgba(61,44,30,0.4);
}

.modal-submit {
  display: inline-block;
  padding: clamp(14px, 3vh, 18px) clamp(28px, 6vw, 40px);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(10px, 1.3vw, 12px);
  letter-spacing: 4px; text-transform: uppercase;
  color: #fff; background: #0d0d0d;
  border: none; cursor: pointer; font-weight: 500;
  margin-top: clamp(8px, 1.5vh, 12px);
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.modal-submit:hover {
  background: var(--gold-dark); color: #fff;
}

.modal-error {
  color: var(--burgundy);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  margin-bottom: 12px;
  min-height: 20px;
}

.modal-success {
  color: var(--burgundy);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
}

/* ===== SURVEY MODAL ===== */
.survey-modal {
  max-width: 480px;
}

.survey-step {
  display: none;
  animation: fadeIn 0.4s ease;
}
.survey-step.active {
  display: block;
}

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

.survey-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: clamp(20px, 3vh, 28px);
  line-height: 1.2;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 14px);
  margin-bottom: clamp(16px, 3vh, 20px);
}

.survey-option {
  display: block;
  width: 100%;
  padding: clamp(14px, 2.5vh, 18px) clamp(20px, 4vw, 28px);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--burgundy);
  background: transparent;
  border: 1px solid rgba(61,44,30,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.survey-option:hover {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
}

.survey-option.selected {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
}

.survey-success {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--burgundy);
  line-height: 1.75;
  animation: fadeIn 0.5s ease;
}

.survey-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: clamp(20px, 3vh, 28px);
}

.survey-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(61,44,30,0.2);
  transition: background 0.3s ease;
}
.survey-dot.active {
  background: var(--burgundy);
}
