/* ============================================
   SVATBA GREPLOVI – Redesign matching invitation
   Fonts: Cormorant SC, Cormorant Garamond, Inter
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors – soft, muted palette matching watercolor flowers */
    --color-bg: #fdfcfa;
    --color-bg-alt: #f7f5f2;
    --color-bg-warm: #f3efe9;
    --color-bg-dark: #2a2a2a;
    --color-text: #4a4a4a;
    --color-text-light: #8a8a8a;
    --color-text-white: #ffffff;
    --color-accent: #7B8CDE;       /* Lavender from invitation names */
    --color-accent-hover: #6472c9;
    --color-accent-soft: rgba(123, 140, 222, 0.1);
    --color-gold: #c9a96e;
    --color-border: #e8e4de;
    --color-overlay: rgba(30, 28, 25, 0.55);

    /* Typography – matching the invitation exactly */
    --font-display: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
    --font-body-serif: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & sizes */
    --container-max: 1060px;
    --nav-height: 64px;
    --radius: 10px;
    --radius-sm: 6px;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Section titles – Cormorant SC with letter-spacing 50 (≈ 0.2em) */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-text);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-title--light {
    color: var(--color-text-white);
}

/* Eyebrow text – Cormorant Garamond Italic with letter-spacing 95 (≈ 0.35em) */
.section-eyebrow {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-text-light);
    text-align: center;
    letter-spacing: 0.35em;
    margin-bottom: 8px;
}

.section-eyebrow--light {
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Floral decorations ---------- */
/* Shared diagonal pattern: top-left hangs down, bottom-right rotated 180° */

/* --- Vellum / Pauzák flowers --- */
.vellum-flowers {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    width: min(50%, 480px);
    transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.vellum-flowers--top-left {
    top: -10px;
    left: -20px;
    opacity: 0.6;
}

.vellum-flowers--bottom-right {
    bottom: -10px;
    right: -20px;
    transform: rotate(180deg);
    opacity: 0.5;
}

/* --- Section flowers (Program dne) --- */
.section-flowers {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: min(45%, 440px);
}

.section-flowers--top-left {
    top: -20px;
    left: -40px;
    opacity: 0.2;
}

.section-flowers--bottom-right {
    bottom: -20px;
    right: -40px;
    transform: rotate(180deg);
    opacity: 0.15;
}

/* --- RSVP flowers --- */
.rsvp-flowers {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: min(50%, 500px);
}

.rsvp-flowers--top-left {
    top: -16px;
    left: -20px;
    opacity: 0.35;
}

.rsvp-flowers--bottom-right {
    bottom: -16px;
    right: -20px;
    transform: rotate(180deg);
    opacity: 0.28;
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PAUZÁK – INTRO ANIMACE
   ============================================ */
body.envelope-active,
body.gate-active {
    overflow: hidden;
}

.vellum-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.vellum-paper {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(253, 252, 250, 0.88);
    backdrop-filter: blur(4px) saturate(0.5);
    -webkit-backdrop-filter: blur(4px) saturate(0.5);
    transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.vellum-paper--left { left: 0; transform-origin: left center; }
.vellum-paper--right { right: 0; transform-origin: right center; z-index: 2; box-shadow: -4px 0 12px rgba(0,0,0,0.1); }

.vellum-paper--left::after {
    content: '';
    position: absolute;
    top: 0; right: -1px;
    width: 1px; height: 100%;
    background: rgba(0,0,0,0.12);
}

.envelope-seal {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: clamp(90px, 17vw, 140px);
    height: clamp(90px, 17vw, 140px);
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    filter: drop-shadow(3px 5px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.envelope-seal:hover {
    transform: translate(-50%, -50%) scale(1.06) rotate(1deg);
    filter: drop-shadow(5px 8px 20px rgba(0, 0, 0, 0.4));
}

.envelope-seal:active {
    transform: translate(-50%, -50%) scale(0.97);
}

.seal-img {
    width: 108%; height: 108%;
    object-fit: contain;
    pointer-events: none;
    border-radius: 49% 51% 44% 56% / 54% 46% 58% 42%;
    mix-blend-mode: multiply;
}

.envelope-seal::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(123, 140, 222, 0.2);
    animation: sealPulse 2.5s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}

.vellum-overlay.opening .vellum-paper--left { transform: translateX(-105%); opacity: 0; }
.vellum-overlay.opening .vellum-paper--right { transform: translateX(105%); opacity: 0; }
.vellum-overlay.opening .envelope-seal { opacity: 0; transition: opacity 0.8s ease; }
.vellum-overlay.opening .envelope-seal::before { animation: none; opacity: 0; }
.vellum-overlay.opening .vellum-flowers--top-left {
    transform: translateX(-105%);
    opacity: 0;
    transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.vellum-overlay.opening .vellum-flowers--bottom-right {
    transform: translateX(105%) rotate(180deg);
    opacity: 0;
    transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   NAVIGACE
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, color 0.3s ease;
}

.navbar.scrolled .nav-logo {
    opacity: 1;
    pointer-events: auto;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 14px;
    border-radius: 4px;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-light);
}

.nav-link:hover {
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-accent);
    background-color: var(--color-accent-soft);
}

.nav-link--cta {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link--cta {
    background: linear-gradient(135deg, rgba(123, 140, 222, 0.8), rgba(100, 114, 201, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text-white) !important;
    border-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(123, 140, 222, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .nav-link--cta:hover {
    background: linear-gradient(135deg, rgba(100, 114, 201, 0.9), rgba(85, 98, 185, 0.95)) !important;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 24px rgba(123, 140, 222, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px; height: 2px;
    background-color: var(--color-text-white);
    position: relative;
    transition: background-color var(--transition);
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background-color: var(--color-text);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px; height: 2px;
    background-color: var(--color-text-white);
    left: 0;
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); background-color: var(--color-text); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); background-color: var(--color-text); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2c3e2d;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    filter: brightness(0.6);
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 24px;
    padding-top: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease 0.3s, transform 1.2s ease 0.3s;
}

.hero-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* "Zveme Vás na svatbu" – Cormorant Garamond Italic */
.hero-subtitle {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.35em;
    margin-bottom: 16px;
}

/* "Radim & Veronika" – Cormorant SC */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 300;
    color: var(--color-text-white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: 0.12em;
}

.hero-title .ampersand {
    display: inline-block;
    font-family: var(--font-body-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.6em;
    color: var(--color-accent);
    margin: 0 0.15em;
    vertical-align: middle;
}

.hero-title .groom,
.hero-title .bride {
    display: block;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.date-line {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}

/* "29. srpna 2026" – Cormorant SC */
.date-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Countdown */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 48px;
}

.countdown-item {
    text-align: center;
    min-width: 64px;
}

.countdown-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-text-white);
    line-height: 1;
    letter-spacing: 0.05em;
}

.countdown-label {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    margin-top: 6px;
}

.countdown-separator {
    font-family: var(--font-body-serif);
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    margin-top: -18px;
}

/* Hero CTA */
.hero-cta {
    display: inline-block;
    padding: 13px 40px;
    background-color: transparent;
    color: var(--color-text-white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all var(--transition);
}

.hero-cta:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transform: rotate(45deg);
    animation: scrollBounce 2.5s ease infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(8px); }
    60% { transform: rotate(45deg) translateY(4px); }
}

/* ============================================
   MÍSTO SVATBY
   ============================================ */
.section--venue {
    background-color: var(--color-bg-alt);
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venue-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.venue-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--color-accent);
    transition: background var(--transition), border-color var(--transition);
}

.venue-icon:hover {
    background: rgba(123, 140, 222, 0.12);
    border-color: rgba(123, 140, 222, 0.25);
}

.venue-detail h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.venue-detail p {
    font-size: 0.93rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.venue-navigation {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.venue-navigation__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.venue-navigation__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-icon { width: 16px; height: 16px; }

.btn--outline {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    background: rgba(123, 140, 222, 0.1);
    border-color: rgba(123, 140, 222, 0.35);
    color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 140, 222, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.venue-map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.venue-map iframe {
    display: block;
    width: 100%; height: 100%;
    min-height: 420px;
}

/* ============================================
   O NÁS
   ============================================ */
.section--about {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.about-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 28, 25, 0.6) 0%,
        rgba(30, 28, 25, 0.75) 50%,
        rgba(30, 28, 25, 0.6) 100%
    );
    backdrop-filter: blur(2px);
}

.about-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.about-story { margin-top: 8px; }

.about-story p {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-story p:last-child { margin-bottom: 0; }

.about-separator {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.about-separator span:first-child,
.about-separator span:last-child {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.about-separator__text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3em;
}

/* ============================================
   PROGRAM / TIMELINE
   ============================================ */
.section--timeline {
    background-color: var(--color-bg);
}

.timeline {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px; bottom: 8px;
    width: 1px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 36px;
    display: flex;
    gap: 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-time {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent);
    min-width: 50px;
    padding-top: 2px;
    letter-spacing: 0.1em;
}

.timeline-dot {
    position: absolute;
    left: -40px; top: 8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(123, 140, 222, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ============================================
   PRAKTICKÉ INFORMACE
   ============================================ */
.section--info {
    background-color: var(--color-bg-alt);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 140, 222, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.info-card__icon {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(123, 140, 222, 0.12);
    border: 1px solid rgba(123, 140, 222, 0.15);
    margin-left: auto;
    margin-right: auto;
    color: var(--color-accent);
    transition: background var(--transition), border-color var(--transition);
}

.info-card:hover .info-card__icon {
    background: rgba(123, 140, 222, 0.18);
    border-color: rgba(123, 140, 222, 0.25);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.info-card__link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-accent);
}

/* ============================================
   UBYTOVÁNÍ
   ============================================ */
.section--accommodation {
    background-color: var(--color-bg);
}

.acc-category {
    margin-bottom: 28px;
    text-align: center;
}

.acc-category__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-text);
}

.acc-category__note {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: 0.93rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.acc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.acc-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.acc-card:hover {
    border-color: rgba(123, 140, 222, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.acc-card__icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    margin-left: auto; margin-right: auto;
    color: var(--color-accent);
    transition: background var(--transition), border-color var(--transition);
}

.acc-card:hover .acc-card__icon {
    background: rgba(123, 140, 222, 0.12);
    border-color: rgba(123, 140, 222, 0.25);
}

.acc-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.acc-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.acc-facilities {
    background: var(--color-bg-dark);
    border-radius: var(--radius);
    padding: 32px 28px;
    margin-bottom: 56px;
    color: white;
}

.acc-facilities__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
    text-align: center;
    text-transform: uppercase;
}

.acc-facilities__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.acc-facilities__item {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.acc-nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.acc-nearby {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform var(--transition);
}

.acc-nearby:hover { transform: translateY(-2px); }

.acc-nearby__distance {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-accent);
    background-color: var(--color-accent-soft);
    padding: 3px 12px;
    border-radius: 2px;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.acc-nearby__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.acc-nearby__address {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 6px;
}

.acc-nearby__contact {
    font-size: 0.83rem;
    color: var(--color-text-light);
}

.acc-nearby__contact a {
    color: var(--color-accent);
    font-weight: 500;
}

/* ============================================
   GALERIE
   ============================================ */
.section--gallery {
    background-color: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    grid-auto-rows: 220px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition);
}

.gallery-item:hover { transform: scale(1.015); }
.gallery-item--wide { grid-column: span 2; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ============================================
   NAHRÁT FOTKY
   ============================================ */
.section--photo-upload {
    background-color: var(--color-bg);
}

.photo-upload {
    max-width: 560px;
    margin: 0 auto;
}

.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 44px 24px;
    border: 1.5px dashed var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.upload-dropzone:hover,
.upload-dropzone--active {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.upload-dropzone__text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.upload-dropzone__hint {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.upload-dropzone__input { display: none; }

.upload-preview { margin-top: 18px; }

.upload-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.upload-preview__item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-alt);
}

.upload-preview__item img { width: 100%; height: 100%; object-fit: cover; }

.upload-preview__video {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
    background: var(--color-bg-alt);
}

.upload-preview__remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upload-preview__count {
    font-size: 0.87rem;
    color: var(--color-text-light);
}

.btn--upload {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 22px;
    transition: all var(--transition);
}

.btn--upload:hover {
    background: rgba(123, 140, 222, 0.1);
    border-color: rgba(123, 140, 222, 0.35);
    color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(123, 140, 222, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.upload-progress { margin-top: 18px; }
.upload-progress__bar {
    height: 4px;
    background: var(--color-bg-alt);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}
.upload-progress__fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}
.upload-progress__text {
    font-size: 0.87rem;
    color: var(--color-text-light);
    text-align: center;
}

.upload-result {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.93rem;
}
.upload-result--success { background: rgba(123, 140, 222, 0.1); color: var(--color-accent); }
.upload-result--partial { background: rgba(220, 180, 100, 0.15); color: var(--color-text); }

/* ============================================
   RSVP FORMULÁŘ
   ============================================ */
.section--rsvp {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section--rsvp .section-title { color: var(--color-text-white); }

.rsvp-form {
    max-width: 520px;
    margin: 0 auto;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(123, 140, 222, 0.2);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition);
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.radio-label:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0; width: 0; height: 0;
    pointer-events: none;
}

.radio-label:has(input[type="radio"]:checked) {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-white);
}

.btn--submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(123, 140, 222, 0.85), rgba(100, 114, 201, 0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text-white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(123, 140, 222, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--submit:hover {
    background: linear-gradient(135deg, rgba(100, 114, 201, 0.9), rgba(85, 98, 185, 0.95));
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(123, 140, 222, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.93rem;
}

.form-message--success {
    background-color: rgba(123, 140, 222, 0.2);
    color: #c8d0f5;
    border: 1px solid rgba(123, 140, 222, 0.3);
}

.form-message--error {
    background-color: rgba(220, 53, 69, 0.15);
    color: #f5c6cb;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

/* ============================================
   POPUP MODAL
   ============================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.popup-overlay.active { opacity: 1; visibility: visible; }

.popup {
    background: var(--color-bg-dark);
    border-radius: var(--radius);
    padding: 48px 40px 40px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(123, 140, 222, 0.15);
}

.popup-overlay.active .popup { transform: scale(1) translateY(0); }

.popup__close {
    position: absolute;
    top: -12px; right: -12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.popup__close:hover { background: var(--color-text); transform: scale(1.1); }

.popup__icon {
    margin: 0 auto 20px;
    width: 56px; height: 56px;
}

.popup__icon svg { width: 100%; height: 100%; }

.popup__text {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.popup--error .popup__text { color: #f5c6cb; }

/* ============================================
   PATIČKA
   ============================================ */
.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 52px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-names {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.2em;
    margin-bottom: 4px;
}

.footer-date {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: 0.88rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox__img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox__img { transform: scale(1); }

.lightbox__close {
    position: absolute;
    top: 20px; right: 24px;
    background: none; border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 16px;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .venue-grid { grid-template-columns: 1fr; }
    .venue-map { min-height: 300px; }
    .venue-map iframe { min-height: 300px; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .acc-grid { grid-template-columns: 1fr; }
    .acc-nearby-grid { grid-template-columns: 1fr; }
    .acc-facilities__grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .section--about { padding: 80px 0; }
    .about-bg { background-position: 30% 30%; }
    .hero-bg { background-position: 47% 30%; }
    .section-flowers { width: min(40%, 360px) !important; }
    .rsvp-flowers { width: min(45%, 400px) !important; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }

    .nav-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 32px;
        gap: 4px;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        color: var(--color-text);
        font-size: 1.1rem;
        padding: 14px 24px;
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .nav-link:hover {
        background-color: var(--color-bg-alt);
        color: var(--color-accent);
    }

    .nav-link--cta {
        margin-top: 12px;
        background-color: var(--color-accent) !important;
        color: var(--color-text-white) !important;
        border-color: var(--color-accent) !important;
        padding: 14px 24px !important;
    }

    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .section-flowers { width: min(38%, 300px) !important; opacity: 0.14 !important; }
    .rsvp-flowers { width: min(42%, 340px) !important; opacity: 0.22 !important; }
    .vellum-flowers { width: min(48%, 380px) !important; }
    .countdown-number { font-size: 1.8rem; }
    .countdown-item { min-width: 52px; }

    .timeline { padding-left: 32px; }
    .timeline-dot { left: -32px; width: 14px; height: 14px; }
}

@media (max-width: 540px) {
    .info-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .gallery-item--wide { grid-column: span 1; }
    .radio-group { grid-template-columns: 1fr; }
    .countdown { gap: 2px; }
    .countdown-item { min-width: 46px; }
    .countdown-number { font-size: 1.5rem; }
    .countdown-separator { font-size: 1.3rem; }
    .section-flowers { display: none; }
    .rsvp-flowers { width: min(50%, 260px) !important; opacity: 0.18 !important; }
    .vellum-flowers { width: min(55%, 280px) !important; }

    .popup { padding: 40px 24px 32px; max-width: 320px; }
    .popup__close { top: -10px; right: -10px; width: 28px; height: 28px; font-size: 1rem; }
}

/* ============================================
   PASSWORD GATE – maintenance-style fullscreen
   ============================================ */
.password-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.password-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Hero background */
.password-gate__bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/MainV%26RPhoto.jpeg');
    background-size: cover;
    background-position: center 30%;
    filter: brightness(0.55);
    z-index: 1;
}

/* Vellum papers */
.password-gate__paper {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(5px) saturate(0.5);
    -webkit-backdrop-filter: blur(5px) saturate(0.5);
    z-index: 2;
}

.password-gate__paper--left {
    left: 0;
}

.password-gate__paper--left::after {
    content: '';
    position: absolute;
    top: 0; right: -1px;
    width: 1px; height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.password-gate__paper--right {
    right: 0;
    z-index: 3;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
}

/* Flowers */
.password-gate__flowers {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    width: min(50%, 480px);
}

.password-gate__flowers--top-left {
    top: -10px;
    left: -20px;
    opacity: 0.55;
}

.password-gate__flowers--bottom-right {
    bottom: -10px;
    right: -20px;
    transform: rotate(180deg);
    opacity: 0.45;
}

/* Seal – clickable button */
.password-gate__seal {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: clamp(90px, 17vw, 140px);
    height: clamp(90px, 17vw, 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.password-gate__seal:hover {
    transform: translate(-50%, -50%) scale(1.08);
    filter: drop-shadow(2px 6px 16px rgba(0, 0, 0, 0.35));
}

.password-gate__seal:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.password-gate__seal-img {
    width: 108%; height: 108%;
    object-fit: contain;
    pointer-events: none;
    border-radius: 49% 51% 44% 56% / 54% 46% 58% 42%;
    mix-blend-mode: multiply;
}

.password-gate__seal::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(123, 140, 222, 0.2);
    animation: gateSealpulse 2.5s ease-in-out infinite;
}

@keyframes gateSealpulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}

/* Frosted glass card */
.password-gate__content {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, 80px);
    z-index: 30;
    text-align: center;
    width: 88%;
    max-width: 440px;
}

.password-gate__glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 36px 36px 28px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.password-gate__hint {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: clamp(0.88rem, 2.2vw, 1rem);
    color: var(--color-text);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 8px;
}

.password-gate__divider {
    width: 50px;
    height: 1px;
    background: var(--color-accent);
    margin: 14px auto;
    opacity: 0.35;
}

.password-gate__form {
    display: flex;
    flex-direction: column;
}

.password-gate__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body-serif);
    font-size: 0.95rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    outline: none;
    text-align: center;
    letter-spacing: 0.15em;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.password-gate__input::placeholder {
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

.password-gate__input:focus {
    border-color: rgba(123, 140, 222, 0.45);
    background: rgba(255, 255, 255, 0.35);
}

.password-gate__error {
    font-family: var(--font-body-serif);
    font-style: italic;
    font-size: 0.82rem;
    color: #c45;
    min-height: 1.2em;
    margin-top: 8px;
    transition: opacity 0.3s ease;
}

.password-gate__input.shake {
    animation: gateShake 0.4s ease;
    border-color: rgba(196, 68, 85, 0.4);
}

@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Responsive – mobile */
@media (max-width: 480px) {
    .password-gate__seal,
    .envelope-seal {
        top: 35%;
        width: clamp(90px, 24vw, 120px);
        height: clamp(90px, 24vw, 120px);
    }
    .password-gate__content { top: 35%; max-width: 320px; transform: translate(-50%, 75px); }
    .password-gate__glass { padding: 24px 20px 18px; }
    .password-gate__hint { font-size: 0.85rem; line-height: 1.6; }
    .password-gate__flowers { width: min(42%, 220px); }
    .password-gate__flowers--bottom-right {
        bottom: -5px;
        right: -10px;
        opacity: 0.5;
    }
}

/* Responsive – short screens (iPhone SE etc.) */
@media (max-height: 700px) {
    .password-gate__seal,
    .envelope-seal {
        top: 30%;
        width: clamp(70px, 16vw, 100px);
        height: clamp(70px, 16vw, 100px);
    }
    .password-gate__content { top: 30%; transform: translate(-50%, 50px); }
    .password-gate__glass { padding: 20px 20px 16px; }
}
