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

    html { scroll-behavior: smooth; }

    body {
      background: #e8e8e8;
      color: #1a1a1a;
      font-family: 'Cormorant Garamond', serif;
      overflow-x: hidden;
      display: flex;
      justify-content: center;
    }

    .app-container {
      width: 100%;
      max-width: 500px;
      background: #fff;
      box-shadow: 0 0 40px rgba(0,0,0,0.1);
      position: relative;
      overflow-x: hidden;
    }

    /* ─── SCROLL REVEAL ANIMATIONS ─────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-left {
      opacity: 0;
      transform: translateX(-50px);
      transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-right {
      opacity: 0;
      transform: translateX(50px);
      transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-scale {
      opacity: 0;
      transform: scale(0.88);
      transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.visible,
    .reveal-left.visible,
    .reveal-right.visible,
    .reveal-scale.visible {
      opacity: 1;
      transform: translateY(0) translateX(0) scale(1);
    }

    /* Stagger delays for child items */
    .stagger-1 { transition-delay: 0.1s !important; }
    .stagger-2 { transition-delay: 0.25s !important; }
    .stagger-3 { transition-delay: 0.4s !important; }
    .stagger-4 { transition-delay: 0.55s !important; }

    /* ─── HERO SECTION ─────────────────────────────── */
    .hero {
      position: relative;
      width: 100%;
      height: 100dvh;
      min-height: 600px;
      max-height: 900px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      overflow: hidden;
    }

    .hero__bg {
      position: absolute;
      inset: 0;
      background-image: url('../images/oblojka.png');
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      filter: grayscale(100%) brightness(0.75);
      animation: slowZoom 8s ease forwards;
    }

    @keyframes slowZoom {
      from { transform: scale(1.08); }
      to   { transform: scale(1.00); }
    }

    .hero__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.10) 40%,
        rgba(0,0,0,0.55) 70%,
        rgba(0,0,0,0.75) 100%
      );
    }

    /* ─── NAMES ─────────────────────────────────────── */
    .hero__names {
      position: relative;
      z-index: 2;
      width: 100%;
      padding: 0 5% 2.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.1rem;
    }

    .hero__name {
      font-family: 'Great Vibes', cursive;
      font-size: clamp(3.5rem, 13vw, 7rem);
      color: #ffffff;
      text-shadow: 0 2px 20px rgba(0,0,0,0.5);
      line-height: 1.1;
      opacity: 0;
      transform: translateY(24px);
      animation: fadeUp 1s ease forwards;
    }

    .hero__name--groom {
      align-self: flex-start;
      padding-left: 8%;
      animation-delay: 0.6s;
    }

    .hero__name--bride {
      align-self: flex-end;
      padding-right: 8%;
      animation-delay: 0.9s;
    }

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

    /* ─── SCROLL ARROW ───────────────────────────────── */
    .hero__scroll {
      position: relative;
      z-index: 2;
      margin-bottom: 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.4rem;
      cursor: pointer;
      opacity: 0;
      animation: fadeUp 1s ease 1.4s forwards;
    }

    .scroll-arrow {
      width: 22px;
      height: 22px;
      border-right: 1.5px solid rgba(255,255,255,0.6);
      border-bottom: 1.5px solid rgba(255,255,255,0.6);
      transform: rotate(45deg);
      animation: bounce 1.6s ease-in-out infinite;
    }
    .scroll-arrow:nth-child(2) { margin-top: -14px; animation-delay: 0.15s; opacity: 0.5; }
    .scroll-arrow:nth-child(3) { margin-top: -14px; animation-delay: 0.3s;  opacity: 0.25; }

    @keyframes bounce {
      0%   { transform: rotate(45deg) translateY(-4px); opacity: 0; }
      50%  { opacity: 1; }
      100% { transform: rotate(45deg) translateY(4px); opacity: 0; }
    }

    /* ═══════════════════════════════════════════════════
       WHITE SECTIONS SHARED STYLES
    ═══════════════════════════════════════════════════ */
    .white-section {
      position: relative;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100dvh;
      padding: 5rem 1.5rem;
      overflow: hidden;
    }

    .watermark {
      position: absolute;
      font-family: 'Great Vibes', cursive;
      font-size: clamp(5rem, 20vw, 13rem);
      color: rgba(0,0,0,0.045);
      white-space: nowrap;
      pointer-events: none;
      user-select: none;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      letter-spacing: -0.02em;
    }

    .section-inner {
      position: relative;
      z-index: 1;
      text-align: center;
      max-width: 520px;
      width: 100%;
    }

    /* ─── SECTION HEADINGS ─────────────────────────── */
    .section-title {
      font-family: 'Playfair Display', 'Cormorant Garamond', serif;
      font-weight: 400;
      font-size: clamp(1.6rem, 6vw, 2.7rem);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #1a1a1a;
      line-height: 1.25;
      margin-bottom: 2rem;
    }

    .section-body {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.1rem, 3vw, 1.35rem);
      font-weight: 300;
      color: #333;
      line-height: 1.75;
      text-align: center;
    }

    /* ═══════════════════════════════════════════════════
       SECTION 3 — CALENDAR
    ═══════════════════════════════════════════════════ */
    .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 1.2rem;
      border-bottom: 1px solid #ddd;
      padding-bottom: 0.6rem;
    }

    .calendar-month {
      font-family: 'Great Vibes', cursive;
      font-size: clamp(2rem, 6vw, 2.6rem);
      color: #1a1a1a;
    }

    .calendar-year {
      font-family: 'Great Vibes', cursive;
      font-size: clamp(1.8rem, 5vw, 2.4rem);
      color: #1a1a1a;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 0.2rem;
      width: 100%;
      max-width: 380px;
      margin: 0 auto;
    }

    .cal-day-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(0.7rem, 2.5vw, 0.85rem);
      font-weight: 400;
      letter-spacing: 0.08em;
      color: #888;
      text-align: center;
      padding: 0.3rem 0;
      text-transform: uppercase;
    }

    .cal-day {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1rem, 3vw, 1.2rem);
      font-weight: 300;
      color: #1a1a1a;
      text-align: center;
      padding: 0.55rem 0.3rem;
      position: relative;
      cursor: default;
    }

    .cal-day.empty { visibility: hidden; }

    .cal-day.highlight {
      color: #1a1a1a;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 2.6em;
    }

    .cal-day.highlight::before { display: none; }

    .cal-day.highlight .day-num {
      position: relative;
      z-index: 2;
      line-height: 1;
    }

    .cal-day.highlight .heart-ring {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      z-index: 1;
      transform: translateY(10%);
    }

    .cal-day.highlight .heart-ring svg {
      width: 2.8em;
      height: 2.8em;
    }

    .section-divider {
      width: 40px;
      height: 1px;
      background: #bbb;
      margin: 1.6rem auto;
    }

    /* Ornamental divider */
    .ornament {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
      margin: 1.6rem auto;
      color: #c9a96e;
      font-size: 1.1rem;
      letter-spacing: 0.3em;
    }
    .ornament::before,
    .ornament::after {
      content: '';
      flex: 1;
      max-width: 60px;
      height: 1px;
      background: linear-gradient(to right, transparent, #c9a96e);
    }
    .ornament::after {
      background: linear-gradient(to left, transparent, #c9a96e);
    }

    /* ═══════════════════════════════════════════════════
       SECTION 4 — LOCATION
    ═══════════════════════════════════════════════════ */
    .address-block {
      margin: 1.6rem auto 2rem;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .address-line {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.1rem, 3.5vw, 1.7rem);
      font-weight: 300;
      color: #1a1a1a;
      text-align: center;
      line-height: 1.6;
    }

    .address-line.venue {
      font-style: italic;
      color: #555;
    }

    .map-wrapper {
      width: 100%;
      max-width: 580px;
      margin: 0 auto;
      border-radius: 4px;
      overflow: hidden;
      border: 1px solid #e0e0e0;
      box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    }

    .map-wrapper iframe {
      width: 100%;
      height: 340px;
      display: block;
      border: none;
    }

    .map-link {
      display: inline-block;
      margin-top: 1.2rem;
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.95rem;
      font-weight: 400;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #1a1a1a;
      text-decoration: none;
      border-bottom: 1px solid #aaa;
      padding-bottom: 2px;
      transition: border-color 0.3s, color 0.3s;
    }

    .map-link:hover {
      color: #555;
      border-color: #555;
    }

    /* ═══════════════════════════════════════════════════
       SECTION 5 — TIMING
    ═══════════════════════════════════════════════════ */
    #timing-section {
      background: url('../images/floral_bg.png') center/cover no-repeat;
      min-height: auto;
      padding: 6rem 1.5rem;
    }

    .timeline {
      display: flex;
      flex-direction: column;
      gap: 3.5rem;
      margin-top: 3rem;
    }

    .time-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
    }

    .time-icon {
      width: 50px;
      height: 50px;
      margin-bottom: 0.5rem;
    }

    .time-icon svg {
      width: 100%;
      height: 100%;
      stroke: #1a1a1a;
      stroke-width: 1.5;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .time-clock {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2rem;
      font-style: italic;
      color: #1a1a1a;
      line-height: 1;
    }

    .time-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.2rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #1a1a1a;
    }

    /* ═══════════════════════════════════════════════════
       SECTION 6 — GUEST CHAT
    ═══════════════════════════════════════════════════ */
    #chat-section {
      padding-bottom: 6rem;
    }

    .chat-mockup {
      width: 100%;
      max-width: 250px;
      margin: 2rem auto 2.5rem;
      display: block;
      filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
      border-radius: 36px;
    }

    /* ═══════════════════════════════════════════════════
       BUTTONS — BEAUTIFUL GOLD STYLE
    ═══════════════════════════════════════════════════ */
    .btn-primary {
      display: inline-block;
      padding: 1rem 3.5rem;
      border: none;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem;
      font-weight: 400;
      letter-spacing: 0.15em;
      color: #fff;
      text-decoration: none;
      background: linear-gradient(135deg, #b8892a 0%, #e8c96e 45%, #c9a03e 100%);
      background-size: 200% 200%;
      background-position: left center;
      border-radius: 2px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(184, 137, 42, 0.35), 0 1px 3px rgba(0,0,0,0.1);
      transition: background-position 0.5s ease, box-shadow 0.4s ease, transform 0.3s ease;
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      top: 0; left: -75%;
      width: 50%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
      transform: skewX(-20deg);
      transition: left 0.7s ease;
    }

    .btn-primary:hover {
      background-position: right center;
      box-shadow: 0 8px 32px rgba(184, 137, 42, 0.5), 0 2px 6px rgba(0,0,0,0.15);
      transform: translateY(-2px);
      color: #fff;
    }

    .btn-primary:hover::before {
      left: 125%;
    }

    .btn-primary:active {
      transform: translateY(0px);
      box-shadow: 0 3px 12px rgba(184, 137, 42, 0.4);
    }

    /* Map buttons variant */
    .btn-outline {
      display: inline-block;
      padding: 0.75rem 1.8rem;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      font-weight: 400;
      letter-spacing: 0.1em;
      color: #b8892a;
      text-decoration: none;
      background: transparent;
      border: 1.5px solid #c9a03e;
      border-radius: 2px;
      cursor: pointer;
      transition: all 0.35s ease;
      position: relative;
      overflow: hidden;
    }

    .btn-outline::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, #b8892a 0%, #e8c96e 45%, #c9a03e 100%);
      opacity: 0;
      transition: opacity 0.35s ease;
      z-index: -1;
    }

    .btn-outline:hover {
      color: #fff;
      border-color: transparent;
      box-shadow: 0 6px 20px rgba(184, 137, 42, 0.35);
      transform: translateY(-1px);
    }

    .btn-outline:hover::after {
      opacity: 1;
    }

    /* ═══════════════════════════════════════════════════
       SECTION 7 — COUNTDOWN
    ═══════════════════════════════════════════════════ */
    #countdown-section {
      background: url('../images/countdown_bg.png') center/cover no-repeat;
      min-height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4rem 1.5rem 4.5rem;
      position: relative;
    }

    #countdown-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.55);
    }

    #countdown-section .section-inner {
      position: relative;
      z-index: 2;
      background: transparent;
      margin-top: 0;
    }

    .countdown-timer {
      display: flex;
      justify-content: center;
      gap: clamp(0.8rem, 3.5vw, 2rem);
      margin-top: 2rem;
    }

    .cd-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 50px;
      position: relative;
    }

    .cd-item:not(:last-child)::after {
      content: ':';
      position: absolute;
      right: calc(-0.5 * clamp(0.8rem, 3.5vw, 2rem) - 0.1rem);
      top: 0.05rem;
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.6rem, 5vw, 2.5rem);
      color: #aaa;
      line-height: 1;
    }

    .cd-number {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2rem, 6.5vw, 3.2rem);
      color: #1a1a1a;
      line-height: 1;
      font-weight: 300;
      margin-bottom: 0.4rem;
    }

    .cd-label {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(0.75rem, 2vw, 0.95rem);
      text-transform: lowercase;
      color: #555;
      letter-spacing: 0.05em;
    }

    /* ═══════════════════════════════════════════════════
       SECTION 8 — WISHES
    ═══════════════════════════════════════════════════ */
    #wishes-section {
      background: url('../images/wishes_bg.png') center/cover no-repeat;
      position: relative;
    }

    #wishes-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.7);
    }

    .flower-icon {
      width: 40px;
      height: 40px;
      margin: 2.5rem auto;
      opacity: 0.8;
    }

    /* ═══════════════════════════════════════════════════
       SECTION 9 — GIFTS / CARDS
    ═══════════════════════════════════════════════════ */
    .card-block {
      background: linear-gradient(145deg, #fdfaf3, #f9f4e8);
      border: 1px solid #e8d9b5;
      padding: 2rem;
      border-radius: 8px;
      margin-top: 2.5rem;
      box-shadow: 0 4px 20px rgba(184, 137, 42, 0.08), 0 1px 4px rgba(0,0,0,0.04);
    }

    .card-number {
      font-family: monospace;
      font-size: 1.4rem;
      color: #1a1a1a;
      letter-spacing: 2px;
      margin-bottom: 0.5rem;
      cursor: pointer;
      display: inline-block;
      transition: color 0.3s;
    }
    .card-number:hover {
      color: #b8892a;
    }

    .card-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      color: #666;
      margin-bottom: 1.5rem;
    }

    .map-buttons {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin-top: 2rem;
      flex-wrap: wrap;
    }

    /* ─── MAP POPUP ───────────────────────────────── */
    .map-btn-wrap {
      display: inline-block;
      margin-top: 2rem;
    }

    .map-popup-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.28s ease;
    }

    .map-popup-overlay.open {
      opacity: 1;
      pointer-events: all;
    }

    .map-popup {
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.22);
      width: min(340px, 88vw);
      overflow: hidden;
      transform: scale(0.88) translateY(20px);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
      opacity: 0;
    }

    .map-popup-overlay.open .map-popup {
      transform: scale(1) translateY(0);
      opacity: 1;
    }

    .map-popup-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.15rem;
      font-weight: 400;
      letter-spacing: 0.1em;
      text-align: center;
      padding: 1.4rem 1.5rem 1rem;
      color: #1a1a1a;
      border-bottom: 1px solid #f0e8d5;
    }

    .map-popup a {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.1rem 1.6rem;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.2rem;
      color: #1a1a1a;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
      border-bottom: 1px solid #f5f0e8;
    }

    .map-popup a:last-of-type { border-bottom: none; }

    .map-popup a:hover {
      background: #fdfaf3;
      color: #b8892a;
    }

    .map-popup a svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      color: #b8892a;
    }

    .map-popup-close {
      display: block;
      width: 100%;
      padding: 1rem;
      border: none;
      border-top: 1px solid #f0e8d5;
      background: #fafafa;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1rem;
      letter-spacing: 0.1em;
      color: #888;
      cursor: pointer;
      text-align: center;
      transition: background 0.2s, color 0.2s;
    }

    .map-popup-close:hover {
      background: #f5f0e8;
      color: #555;
    }

    /* ═══════════════════════════════════════════════════
       SECTION — OSH TAKLIF (PLOV INVITATION)
    ═══════════════════════════════════════════════════ */
    #osh-section {
      background: linear-gradient(160deg, #fdfaf3 0%, #f5edda 100%);
      min-height: auto;
      padding: 5rem 1.5rem;
    }

    .invite-card {
      background: #fff;
      border: 1px solid #e8d9b5;
      border-radius: 12px;
      padding: 2.8rem 2rem 2.4rem;
      max-width: 380px;
      margin: 0 auto;
      box-shadow: 0 8px 40px rgba(184,137,42,0.10), 0 2px 8px rgba(0,0,0,0.05);
      position: relative;
      overflow: hidden;
    }

    /* subtle corner ornaments */
    .invite-card::before,
    .invite-card::after {
      content: '❧';
      position: absolute;
      font-size: 1.6rem;
      color: rgba(201,160,62,0.18);
      line-height: 1;
    }
    .invite-card::before { top: 0.8rem; left: 1rem; }
    .invite-card::after  { bottom: 0.8rem; right: 1rem; transform: scaleX(-1); }

    .invite-card-label {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(0.75rem, 2vw, 0.9rem);
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: #b8892a;
      margin-bottom: 0.6rem;
    }

    .invite-card-date {
      font-family: 'Great Vibes', cursive;
      font-size: clamp(2.6rem, 9vw, 3.6rem);
      color: #1a1a1a;
      line-height: 1.1;
      margin-bottom: 0.3rem;
    }

    .invite-card-divider {
      width: 50px;
      height: 1px;
      background: linear-gradient(to right, transparent, #c9a03e, transparent);
      margin: 1.2rem auto;
    }

    .invite-event-list {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      margin-top: 1rem;
    }

    .invite-event {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 1.2rem;
      background: linear-gradient(135deg, #fdfaf3, #f9f4e8);
      border: 1px solid #ecdcb0;
      border-radius: 8px;
    }

    .invite-event-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.05rem, 3.5vw, 1.2rem);
      font-weight: 400;
      color: #1a1a1a;
      text-align: left;
    }

    .invite-event-time {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.2rem, 4vw, 1.45rem);
      font-style: italic;
      color: #b8892a;
      white-space: nowrap;
      margin-left: 1rem;
    }

    /* ═══════════════════════════════════════════════════
       MUSIC PLAYER
    ═══════════════════════════════════════════════════ */
    .music-btn {
      position: fixed;
      bottom: 2rem;
      right: 1.5rem;
      z-index: 999;
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #b8892a, #e8c96e);
      border: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(184, 137, 42, 0.45);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .music-btn:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 28px rgba(184, 137, 42, 0.6);
    }

    /* Icon switching */
    .music-btn .icon-pause { display: none; }
    .music-btn.playing .icon-music { display: none; }
    .music-btn.playing .icon-pause { display: block; }

    @keyframes spin {
      100% { transform: rotate(360deg); }
    }

    /* ─── TOAST NOTIFICATION ──────────────────────── */
    .toast {
      position: fixed;
      bottom: 5.5rem;
      right: 1.5rem;
      background: #1a1a1a;
      color: #fff;
      padding: 0.6rem 1.2rem;
      border-radius: 4px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1rem;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s, transform 0.3s;
      pointer-events: none;
      z-index: 1000;
      white-space: nowrap;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* ═══════════════════════════════════════════════════
       INTRO ENVELOPE OVERLAY
    ═══════════════════════════════════════════════════ */
    #intro-overlay {
      position: fixed;
      inset: 0;
      background: #e5e1da;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 1s ease 0.2s;
    }

    #intro-overlay.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .env-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.8rem;
      width: min(320px, 82vw);
      animation: envFadeIn 1.2s ease forwards;
    }

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

    .env-title-text {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.5rem, 5.5vw, 2.1rem);
      letter-spacing: 0.2em;
      text-align: center;
      color: #2a2420;
      text-transform: uppercase;
      line-height: 1.35;
    }

    /* ─── ENVELOPE SCENE ──────────────────────── */
    .env-scene {
      position: relative;
      width: 100%;
      aspect-ratio: 5 / 4;
      cursor: pointer;
      /* 3D context for the flap */
      perspective: 1200px;
    }

    /* White envelope body */
    .env-body {
      position: absolute;
      inset: 0;
      background: #fafaf8;
      box-shadow:
        0 16px 60px rgba(0,0,0,0.16),
        0  3px 10px rgba(0,0,0,0.08);
      border-radius: 2px;
      overflow: hidden;
    }

    /* Fold shadow triangles (visual depth) */
    .env-body::before,
    .env-body::after {
      content: '';
      position: absolute;
      inset: 0;
    }
    /* Left + Right fold shading via layered gradients */
    .env-body::before {
      background:
        linear-gradient(to bottom right, rgba(0,0,0,0.055) 49.8%, transparent 50%),
        linear-gradient(to bottom left,  rgba(0,0,0,0.035) 49.8%, transparent 50%);
    }
    /* Bottom fold shading */
    .env-body::after {
      background: linear-gradient(to top, rgba(0,0,0,0.06) 49.8%, transparent 50%);
    }

    /* ─── LETTER INSIDE ───────────────────────── */
    .env-letter {
      position: absolute;
      bottom: 8%;
      left: 12%;
      width: 76%;
      height: 65%;
      background: linear-gradient(160deg, #fdfaf3, #f7f0e0);
      border: 1px solid #ddd0ad;
      border-radius: 3px;
      box-shadow: 0 6px 24px rgba(0,0,0,0.14);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      /* hidden below envelope bottom edge */
      transform: translateY(110%);
      opacity: 0;
      transition:
        transform 0.75s cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity   0.4s ease;
    }

    .env-letter.visible {
      transform: translateY(-10%);
      opacity: 1;
    }

    .env-letter-inner {
      font-family: 'Great Vibes', cursive;
      font-size: clamp(1.4rem, 5vw, 2rem);
      color: #b8892a;
      text-align: center;
      line-height: 1.4;
    }

    /* ─── TOP FLAP ────────────────────────────── */
    .env-flap-wrap {
      position: absolute;
      inset: 0;
      z-index: 4;
      /* 3D preserve */
      transform-style: preserve-3d;
      pointer-events: none;
    }

    .env-flap {
      position: absolute;
      inset: 0;
      /* Triangle pointing DOWN = top flap of envelope */
      clip-path: polygon(0 0, 100% 0, 50% 52%);
      background: #f2f0eb;
      /* slight shading to distinguish from body */
      box-shadow: inset 0 -2px 8px rgba(0,0,0,0.04);
      transform-origin: top center;
      transform-style: preserve-3d;
      transition: transform 0.95s cubic-bezier(0.4, 0, 0.2, 1);
      backface-visibility: hidden;
    }

    /* Line at the fold of the flap */
    .env-flap::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(0,0,0,0.12), transparent);
    }

    .env-flap.open {
      transform: rotateX(-180deg);
    }

    /* ─── WAX SEAL ────────────────────────────── */
    .env-seal {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 6;
      width: clamp(72px, 22%, 92px);
      aspect-ratio: 1;
      transition: transform 0.3s ease, opacity 0.4s ease;
    }

    .env-seal.cracked {
      transform: translate(-50%, -50%) scale(1.12);
    }
    .env-seal.gone {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .env-seal-disc {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: radial-gradient(circle at 38% 32%, #ddd8cc, #c2bdb0 60%, #aeaa9f);
      box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.55),
        inset 0 -3px 8px rgba(0,0,0,0.18),
        0 5px 20px rgba(0,0,0,0.25),
        0 1px 4px rgba(0,0,0,0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    /* Outer ring engraving */
    .env-seal-disc::before {
      content: '';
      position: absolute;
      inset: 7px;
      border-radius: 50%;
      border: 1px solid rgba(100,90,70,0.3);
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
    }

    .env-seal-monogram {
      font-family: 'Great Vibes', cursive;
      font-size: clamp(1.6rem, 7vw, 2.1rem);
      color: rgba(80,68,48,0.72);
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    }

    /* ─── HINT TEXT ───────────────────────────── */
    .env-hint-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(0.85rem, 2.8vw, 1rem);
      color: #888;
      text-align: center;
      letter-spacing: 0.06em;
      animation: hintPulse 2.4s ease-in-out infinite;
    }

    @keyframes hintPulse {
      0%, 100% { opacity: 0.55; }
      50%       { opacity: 1; }
    }

    /* ═══════════════════════════════════════════════════
       MOBILE — убираем лишние пустые пространства
    ═══════════════════════════════════════════════════ */
    @media (max-width: 600px) {
      .white-section {
        min-height: auto;
        padding: 3rem 1.5rem;
        align-items: flex-start;
      }

      /* hero остаётся полноэкранным */
      .hero {
        min-height: 100dvh;
      }

      .section-inner {
        padding-top: 0;
      }

      /* на мобильном номер карты — только текст, копирование только через кнопку */
      .card-number {
        pointer-events: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        cursor: default;
      }
      .card-number:hover {
        color: #1a1a1a;
      }
    }