:root {
  --cream: #FAF7F2;
  --cream-2: #F5F0E8;
  --paper: #FFFFFF;
  --ink: #2A2A2A;
  --ink-soft: #6B6B6B;
  --ink-muted: #9A938A;
  --line: #E5DCC9;
  --line-soft: #EFE9DC;
  --accent: #8B7355;
  --shadow: rgba(42, 42, 42, 0.06);
  --shadow-strong: rgba(42, 42, 42, 0.18);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Italiana', 'Cormorant Garamond', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
body { min-height: 100vh; position: relative; }

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: inherit; }

/* === DÔLEŽITÉ: iOS Safari autodetekcia (modré IBAN, čísla, URL) === */
a, a:visited, a:link, a:active, a:hover {
  color: inherit;
  text-decoration: none;
  -webkit-text-decoration: none;
}
.no-detect, .qr-meta, .share-link, .qr-meta span, .qr-meta div {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
}
.qr-meta * { color: var(--ink) !important; }
.share-link, .share-link:visited { color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; border-bottom: 0 !important; }

/* ========== SPLASH ========== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
  transition: opacity 1.4s ease, visibility 1.4s;
}
.splash.open { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-bg { position: absolute; inset: 0; }
.splash-paper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.9) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(245,240,232,0.6) 0%, transparent 60%),
    linear-gradient(135deg, #FAF7F2 0%, #F1EBE0 100%);
}

.splash-envelope {
  position: absolute;
  width: min(86vw, 460px);
  filter: drop-shadow(0 30px 60px var(--shadow-strong));
  opacity: 0.95;
  transform: translateY(40px);
  animation: envFloat 6s ease-in-out infinite;
  z-index: 1;
}
@keyframes envFloat {
  0%, 100% { transform: translateY(40px) rotate(0deg); }
  50%      { transform: translateY(30px) rotate(-0.5deg); }
}
.env-svg { width: 100%; height: auto; display: block; }

.splash-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 24px;
}

.splash-monogram {
  font-family: var(--font-display);
  font-size: clamp(48px, 13vw, 88px);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--ink);
  animation: fadeUp 1.6s ease 0.2s both;
}
.splash-monogram .div { width: 1px; height: 0.6em; background: var(--ink); opacity: 0.6; }

.splash-greeting {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  animation: fadeUp 1.6s ease 0.5s both;
}

.splash-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 18px 36px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.5s, color 0.5s, letter-spacing 0.5s;
  animation: fadeUp 1.6s ease 0.8s both;
  text-decoration: none !important;
}
.splash-btn:hover { background: var(--ink); color: var(--cream); letter-spacing: 0.42em; }

.splash-date {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  margin-top: 28px;
  animation: fadeUp 1.6s ease 1.1s both;
}

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

/* ========== INVITE ========== */
.invite {
  opacity: 0;
  transition: opacity 1.6s ease;
  position: relative;
  background: var(--cream);
}
.invite.show { opacity: 1; }

/* ========== PARALAX — VRSTVY HĹBKY ========== */
/* Vrstva 1: STATIC AMBIENT (jungle leaves v rohoch — dýchajú, dlhodobá prítomnosť) */
.parallax-ambient {
  position: fixed;
  top: -10vh;
  left: -5vw;
  width: 110vw;
  height: 120vh;
  height: max(120vh, calc(100lvh + 20vh));
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.amb {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(42,42,42,0.05));
  will-change: transform;
}
.amb-tl { top: -12%; left: -10%; width: clamp(200px, 35vw, 380px); animation: sway1 14s ease-in-out infinite alternate; }
.amb-tr { top: -10%; right: -12%; width: clamp(220px, 38vw, 420px); transform: scaleX(-1); animation: sway2 16s ease-in-out infinite alternate; }
.amb-bl { bottom: -12%; left: -10%; width: clamp(220px, 38vw, 400px); transform: rotate(180deg); animation: sway1 18s ease-in-out infinite alternate-reverse; }
.amb-br { bottom: -10%; right: -10%; width: clamp(200px, 34vw, 380px); transform: rotate(180deg) scaleX(-1); animation: sway2 15s ease-in-out infinite alternate-reverse; }
.amb-cl { top: 40%; left: -12%; width: clamp(180px, 30vw, 320px); animation: sway1 20s ease-in-out infinite alternate; }
.amb-cr { top: 55%; right: -14%; width: clamp(180px, 30vw, 320px); transform: scaleX(-1); animation: sway2 17s ease-in-out infinite alternate; }

@keyframes sway1 {
  0%   { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-14px) rotate(3deg); }
}
@keyframes sway2 {
  0%   { transform: scaleX(-1) translateY(0) rotate(-3deg); }
  100% { transform: scaleX(-1) translateY(-10px) rotate(2deg); }
}

/* Vrstva 2: TRANSIENT TRAVELERS (motýle, kvety čo plynú so scrollovaním) */
.parallax-travel {
  position: fixed;
  top: -10vh;
  left: 0;
  width: 100vw;
  height: 120vh;
  height: max(120vh, calc(100lvh + 20vh));
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.tr {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(42,42,42,0.08));
  will-change: transform, opacity;
  opacity: 0;
}

/* Vrstva 3: MASTER BUTTERFLY (cestuje po celej stránke organicky) */
.master-butterfly {
  position: fixed;
  top: 8%;
  left: 4%;
  width: clamp(80px, 14vw, 130px);
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 12px 24px rgba(42,42,42,0.1));
  will-change: transform, opacity;
  opacity: 0;
}
.master-butterfly .wings {
  animation: flutter 0.45s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes flutter {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0.85); }
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: 80px 24px 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  z-index: 4;
}

.hero-monogram {
  font-family: var(--font-display);
  font-size: clamp(70px, 18vw, 140px);
  letter-spacing: 0.04em;
  line-height: 1;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 56px;
  position: relative;
}
.hero-monogram .m-div { width: 1px; height: 0.65em; background: var(--ink); opacity: 0.7; }
.hero-monogram .m-k, .hero-monogram .m-r {
  display: inline-block;
  animation: heroLetter 2.4s ease both;
}
.hero-monogram .m-r { animation-delay: 0.3s; }
@keyframes heroLetter {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-greet, .hero-greet-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.hero-greet-sub { margin-bottom: 36px; }

.hero-names {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 5vw, 32px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-names .name { display: block; }
.hero-names .and {
  display: block;
  font-style: italic;
  font-size: 0.7em;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin: 4px 0;
}

.hero-divider { width: 60px; height: 1px; background: var(--ink); opacity: 0.4; margin: 28px auto; }
.hero-date { font-family: var(--font-serif); font-size: clamp(18px, 4vw, 22px); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 24px; }
.hero-location { font-family: var(--font-serif); font-size: 16px; line-height: 1.7; font-style: italic; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0.5;
}
.scroll-line { width: 1px; height: 32px; background: var(--ink); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(1); opacity: 0.6; } 50% { transform: scaleY(0.4); opacity: 1; } }
.scroll-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); }

/* ========== SPACER ========== */
.spacer {
  min-height: 80vh;
  padding: 80px 24px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 4;
}
.scene-caption { text-align: center; position: relative; z-index: 4; }
.scene-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 4vw, 26px);
  color: var(--ink);
  opacity: 0;
  display: inline-block;
  padding: 0 20px;
}

/* ========== SECTIONS (BEZ BACKGROUND — NECH PARALAX JE VIDIEŤ!) ========== */
section { padding: 100px 24px; position: relative; z-index: 4; }
section > * { position: relative; z-index: 5; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}

.leaf { display: flex; justify-content: center; margin-bottom: 20px; opacity: 0.85; }

/* ========== DETAILY ========== */
.details { max-width: 560px; margin: 0 auto; }











/* ========== MAPA ========== */
.map-section { text-align: center; }
.map-sub { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ink-soft); margin-bottom: 40px; }
.map-pair { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 720px; margin: 0 auto; }
@media (min-width: 720px) { .map-pair { grid-template-columns: 1fr 1fr; } }
.map-card {
  display: block;
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.5s, box-shadow 0.5s, background 0.5s;
  text-decoration: none !important;
  color: var(--ink) !important;
}
.map-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); background: rgba(255,255,255,0.9); }
.map-card-time { font-family: var(--font-display); font-size: 32px; letter-spacing: 0.18em; margin-bottom: 12px; }
.map-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.map-card p { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.map-card-link { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }

/* ========== RSVP ========== */
.rsvp { max-width: 480px; margin: 0 auto; }
.rsvp-sub { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ink-soft); text-align: center; margin-bottom: 40px; }
.rsvp-form { display: flex; flex-direction: column; gap: 22px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-group { display: flex; flex-direction: column; gap: 12px; }
.field-label { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=number], .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  font-family: var(--font-serif); font-size: 16px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); background: rgba(255,255,255,0.95); }

.radio-row { display: flex; flex-direction: column; gap: 10px; }
.radio, .check {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--font-serif); font-size: 16px;
  transition: border-color 0.3s, background 0.3s;
}
.radio:hover, .check:hover { border-color: var(--ink-soft); }
.radio input, .check input { accent-color: var(--ink); }
.radio:has(input:checked), .check:has(input:checked) { border-color: var(--ink); background: rgba(255,255,255,0.95); }

.plus-one-wrap { padding: 14px 16px; border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 12px; }

.btn-primary {
  padding: 18px 36px;
  background: var(--ink);
  color: var(--cream) !important;
  -webkit-text-fill-color: var(--cream) !important;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.4s, color 0.4s, letter-spacing 0.4s;
  margin-top: 8px;
  text-decoration: none !important;
  display: block; width: 100%; text-align: center;
}
.btn-primary:hover { background: transparent; color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; letter-spacing: 0.42em; }
.btn-primary:disabled { opacity: 0.4; cursor: wait; }

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  text-decoration: none !important;
}
.btn-secondary:hover { background: var(--ink); color: var(--cream) !important; -webkit-text-fill-color: var(--cream) !important; }

.rsvp-result {
  padding: 24px; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.6;
  margin-top: 16px;
}
.rsvp-result.ok  { border-color: #C5D9C0; background: #F4F8F2; }
.rsvp-result.err { border-color: #D9C0C0; background: #F8F2F2; }

/* ========== DAR ========== */
.gift { text-align: center; }
.gift-sub { font-family: var(--font-serif); font-style: italic; font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 40px; }

.qr-card {
  max-width: 420px; margin: 0 auto;
  padding: 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.qr-card img { width: 100%; max-width: 280px; background: #fff; }

.qr-amount-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.amt-btn {
  padding: 10px 16px; background: transparent;
  border: 1px solid var(--line); color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-family: var(--font-serif); font-size: 15px;
  text-decoration: none !important;
}
.amt-btn:hover { border-color: var(--ink-soft); }
.amt-btn.is-active {
  background: var(--ink);
  color: var(--cream) !important;
  -webkit-text-fill-color: var(--cream) !important;
  border-color: var(--ink);
}

#customAmtWrap { margin-top: 8px; }
#customAmtInput { width: 200px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); text-align: center; font-family: var(--font-serif); font-size: 15px; }

.qr-meta {
  width: 100%; margin-top: 8px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-sans); font-size: 12px; text-align: left;
}
.qr-meta div {
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
}
.qr-meta span {
  color: var(--ink-soft) !important;
  -webkit-text-fill-color: var(--ink-soft) !important;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 10px; font-weight: 500;
}
.qr-meta div > *:not(span) {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-family: var(--font-serif); font-size: 14px;
}

.qr-tap { display: block; cursor: pointer; transition: transform 0.4s ease; }
.qr-tap:hover { transform: scale(1.02); }
.qr-tap:active { transform: scale(0.99); }

.btn-pay { display: block; width: 100%; text-align: center; cursor: pointer; }
.btn-pay:hover { letter-spacing: 0.42em; }
.amt-btn.amt-custom { font-style: italic; }

/* ========== ZDIEĽAŤ ========== */
.share { text-align: center; }
.share-sub { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--ink-soft); margin-bottom: 32px; }
.qr-card-small { max-width: 340px; padding: 24px; }
.qr-card-small img { max-width: 220px; }
.share-link {
  font-family: var(--font-serif); font-size: 16px;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  text-decoration: none !important; border-bottom: 0 !important;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
}

/* ========== OUTRO ========== */
.outro {
  text-align: center;
  padding: 140px 24px 100px;
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.outro-monogram { font-family: var(--font-display); font-size: clamp(48px, 12vw, 80px); letter-spacing: 0.16em; margin-bottom: 32px; }
.outro-text { font-family: var(--font-serif); font-style: italic; font-size: 20px; margin-bottom: 16px; }
.outro-sign { font-family: var(--font-serif); font-size: 14px; color: var(--ink-soft); letter-spacing: 0.18em; text-transform: uppercase; }

/* ========== MUSIC TOGGLE ========== */
.music-toggle {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 16px var(--shadow);
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.music-toggle:hover { transform: scale(1.06); }
.music-toggle .ic-off { display: none; }
.music-toggle.muted .ic-on { display: none; }
.music-toggle.muted .ic-off { display: block; }
.music-toggle svg { display: block; stroke: var(--ink); fill: none; }

@media (max-width: 480px) {
  section, .spacer { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 60px 18px 50px; }
  .qr-card { padding: 24px 16px; }
  .qr-card img { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .amb, .tr, .master-butterfly { display: none; }
}


/* ========== DEPTH ZOOM PARALAX — objekty letia ku kamere ========== */




/* Hero monogram + sekcie potrebujú vyšší z-index pre čitateľnosť pod depth layer */
.hero, .details, .map-section, .rsvp, .gift, .share, .outro, .spacer {
  z-index: 5;
}

/* ========== PERSONAL-ONLY (skryje pri verejnej verzii) ========== */
body[data-mode="public"] .personal-only {
  display: none !important;
}
body[data-mode="personal"] .personal-only {
  display: flex;
}
body[data-mode="personal"] #rsvp.personal-only {
  display: block;
}

/* Pri verejnej verzii share-title hovorí "Zdieľať oznámenie", pri osobnej "Zdieľať pozvánku" */


/* ========== DETAILY — VERTIKÁLNY STACK CENTROVANÝ, ZHUSTENÝ ========== */
.details {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.detail-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.detail-row.in { opacity: 1; transform: translateY(0); }
.detail-row:last-of-type { border-bottom: 0; }

.detail-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-icon lottie-player { display: block !important; }

.detail-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.detail-text h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.detail-text p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.detail-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ========== SHARE GRID — vždy grid 3 stĺpce ========== */




















.share { text-align: center; }

/* Zhustenie sekcií — menej medzier */
section { padding: 70px 24px !important; }
.spacer { min-height: 60vh !important; padding: 60px 24px !important; }
.hero { min-height: 100vh; min-height: 100lvh; padding: 80px 24px 60px !important; }

@media (max-width: 480px) {
  section { padding: 60px 18px !important; }
  .spacer { padding: 50px 18px !important; }
  .hero { padding: 60px 18px 50px !important; }
  
  
}


/* ========== PARALAX DEPTH — wrapper má CSS float (GPU), .dp má GSAP scale/opacity ========== */
.parallax-depth {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.dp-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(160px, 32vw, 380px);
  margin-left: calc(clamp(160px, 32vw, 380px) / -2);
  margin-top: calc(clamp(160px, 32vw, 380px) / -2);
  will-change: transform;
  transform: translateZ(0);
  pointer-events: none;
}
.dp-wrap-1 { animation: dpFloat1 9s ease-in-out infinite alternate; }
.dp-wrap-2 { animation: dpFloat2 11s ease-in-out infinite alternate; }
.dp-wrap-3 { animation: dpFloat3 13s ease-in-out infinite alternate; }

@keyframes dpFloat1 {
  0%   { transform: translate(-8px, -10px) translateZ(0); }
  100% { transform: translate(10px, 12px) translateZ(0); }
}
@keyframes dpFloat2 {
  0%   { transform: translate(12px, -6px) translateZ(0); }
  100% { transform: translate(-10px, 14px) translateZ(0); }
}
@keyframes dpFloat3 {
  0%   { transform: translate(-14px, 8px) translateZ(0); }
  100% { transform: translate(12px, -10px) translateZ(0); }
}

.dp {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.1);
  transform-origin: center center;
  will-change: transform, opacity;
  filter: drop-shadow(0 20px 40px rgba(42,42,42,0.1));
}

/* GPU acceleration pre všetky paralax vrstvy */
.amb, .tr, .master-butterfly {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Ruže ako bočné ambient ozdoby */








/* ========== iPhone Safari PERFORMANCE FIX ========== */

/* Drop-shadow na .dp je extrémne drahý pri scale 3+ na iOS Safari — VYHODIŤ */
.dp { filter: none !important; }

/* GPU layer izolácia pre paralax containers — vlastný compositor layer */
.parallax-ambient,
.parallax-travel,
.parallax-depth {
  contain: layout style paint;
  isolation: isolate;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

/* Ambient leaves — slow CSS sway 25-35s (z 14-20s) */
@keyframes swayLeaf1 { 0% { transform: rotate(-2deg) translate3d(0,0,0); } 100% { transform: rotate(3deg) translate3d(6px,-8px,0); } }
@keyframes swayLeaf2 { 0% { transform: rotate(2deg) translate3d(0,0,0); }  100% { transform: rotate(-3deg) translate3d(-8px,10px,0); } }

.amb {
  animation-duration: 28s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
  will-change: transform;
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.amb-tl { animation-name: swayLeaf1; }
.amb-tr { animation-name: swayLeaf2; animation-duration: 32s !important; }
.amb-bl { animation-name: swayLeaf2; animation-duration: 35s !important; }
.amb-br { animation-name: swayLeaf1; animation-duration: 30s !important; }

/* Master butterfly — force GPU layer */
.master-butterfly {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
  filter: none !important;
}

/* === MOBILE-SPECIFIC PERFORMANCE === */
@media (max-width: 768px) {
  /* Backdrop-filter na mobile = killer Safari iOS — VYHODIŤ */
  .qr-card,
  .map-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,0.92) !important;
  }

  /* Drop-shadow na všetkých paralax elementoch — preč */
  .amb, .tr, .dp, .master-butterfly {
    filter: none !important;
  }

  /* Master butterfly menší a transparentnejší na mobile */
  .master-butterfly {
    width: clamp(120px, 28vw, 200px) !important;
    opacity: 0.6 !important;
  }

  /* Menšie ambient leaves */
  .amb { width: clamp(140px, 32vw, 220px) !important; opacity: 0.4 !important; }

  /* Depth wrapper menší */
  .dp-wrap { width: clamp(140px, 28vw, 280px) !important; }
}

/* Extra slabé telefóny (<= 400px width — staré iPhones) */
@media (max-width: 400px) {
  .parallax-depth { display: none !important; }
  .tr { opacity: 0.35 !important; }
}


/* ========== SHARE — jednoduchá verzia (1 tlačidlo + copy link) ========== */
.share { text-align: center; }
.share-simple {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.btn-share {
  min-width: 200px;
  padding: 14px 32px !important;
}
.share-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.share-link-row code {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.btn-link {
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--accent);
  padding: 4px 0;
  cursor: pointer;
}
.btn-link:hover { color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; border-bottom-color: var(--ink); }


/* ========== TR-ROSE — ruže ako travelers (väčšie, transparentnejšie) ========== */
.tr-rose {
  width: clamp(180px, 38vw, 320px) !important;
  filter: none !important;
}
@media (max-width: 480px) {
  .tr-rose { width: clamp(140px, 32vw, 220px) !important; }
}


/* btn-pay — kratší letter-spacing aby sa "Odoslať dar" nezalamoval */
.btn-pay {
  letter-spacing: 0.18em !important;
  font-size: 11px !important;
  padding: 16px 24px !important;
  white-space: nowrap;
}
.btn-pay:hover { letter-spacing: 0.22em !important; }

/* amt-btn — fix wrap, vyzeralo ako column stack */
.qr-amount-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
  width: 100%;
}
.amt-btn {
  flex: 0 0 auto !important;
  min-width: 70px;
}

/* qr-meta — IBAN bez zalamovania písmena */
.qr-meta div > *:not(span) {
  word-break: normal !important;
  white-space: normal !important;
}
.qr-meta .qr-val {
  text-align: right;
  word-break: break-word;
}
