:root {
    --dark: #1a2e1e;
    --dark2: #0f1f12;
    --light: #ffffff;
    --gold: #b5956a;
    --text: #6b6460;
    --section-padding: 100px 20px;
    --section-padding-mobile: 80px 24px;
    --venue-padding: 100px 20px 8px;
    --venue-padding-mobile: 80px 24px 8px;
    --dresscode-padding: 8px 20px 80px;
    --dresscode-padding-mobile: 8px 24px 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Cormorant Garamond', serif; background: var(--light); color: var(--text); overflow-x: hidden; }

/* ── Music button ── */
.music-btn { position: fixed; bottom: 24px; right: 24px; z-index: 1000; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); color: white; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.music-btn:hover { background: rgba(255,255,255,0.3); }
.music-btn.muted { opacity: 0.5; }

/* ── Мова ── */
.lang-switch { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); backdrop-filter: blur(12px); padding: 7px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.25); }
.lang-switch span { color: rgba(255,255,255,0.5); font-size: 0.7rem; }
.lang-switch button { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-family: 'Montserrat'; font-size: 0.65rem; letter-spacing: 1.5px; transition: 0.3s; }
.lang-switch button.active { color: white; font-weight: 500; }

/* ── Hero ── */
@keyframes kenBurns {
    0%   { transform: scale(1)    translateX(0); }
    50%  { transform: scale(1.06) translateX(-1%); }
    100% { transform: scale(1)    translateX(0); }
}
@keyframes goldShimmer {
    0%, 100% { text-shadow: 0 0 20px rgba(255,255,255,0.2), 0 2px 30px rgba(0,0,0,0.3); }
    50%       { text-shadow: 0 0 40px rgba(255,240,200,0.35), 0 2px 40px rgba(0,0,0,0.3); }
}
@keyframes floatDoves {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes drawLine {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: -5%;
    background: url('photo/main.jpg') center center / cover no-repeat;
    animation: kenBurns 18s ease-in-out infinite;
    z-index: 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,25,14,0.55) 0%,
        rgba(10,25,14,0.35) 50%,
        rgba(10,25,14,0.6) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    animation: heroFadeIn 1.8s ease-out forwards;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-pretitle {
    font-style: italic;
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: 2px;
    opacity: 1;
    margin-bottom: 18px;
}
.hero-names {
    font-family: 'Pinyon Script', cursive;
    font-size: 48px !important;
    line-height: 1.1;
    margin-bottom: 28px;
    white-space: nowrap;
    animation: goldShimmer 5s ease-in-out infinite;
}
.hero-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.55);
    margin: 0 auto 24px;
}
.hero-date {
    font-family: 'Montserrat';
    font-size: 0.68rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Scroll hint */
.hero-scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 1; text-align: center; }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent); margin: 0 auto; animation: scrollPulse 2s ease-in-out infinite; }
.scroll-label { font-family: 'Montserrat'; font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 10px; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ── Загальні секції ── */
.section-light { background: var(--light); color: var(--text); padding: var(--section-padding); }
.section-dark  { background: var(--dark);  color: white;       padding: var(--section-padding); }
.container { max-width: 560px; margin: 0 auto; text-align: center; }

.label { font-family: 'Montserrat'; font-size: 0.82rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.label-light { color: rgba(255,255,255,0.6); }

.elegant-line { width: 50px; height: 1px; background: var(--gold); margin: 0 auto 50px; }
.elegant-line.light { background: rgba(255,255,255,0.25); }

/* ── Invitation new ── */
.section-invite-new { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--section-padding); overflow: hidden; background: #0a1a0e; }
.invite-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.invite-overlay { position: absolute; inset: 0; background: rgba(5,18,10,0.52); }
.invite-content { position: relative; z-index: 1; color: white; }
.invite-heading { font-family: 'Pinyon Script', cursive; font-size: 4rem; color: white; margin-bottom: 30px; line-height: 1.1; }
.invite-text-new { font-size: 1.2rem; line-height: 1.9; font-weight: 400; font-style: italic; color: #ffffff; max-width: 440px; margin: 0 auto 40px; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.invite-btn { display: inline-block; padding: 14px 44px; border: 1px solid rgba(255,255,255,0.7); color: white; text-decoration: none; font-family: 'Montserrat'; font-size: 0.72rem; letter-spacing: 3px; transition: 0.35s; border-radius: 30px; }
.invite-btn:hover { background: white; color: #1a2e1e; }

/* ── Venue ── */
.section-venue { background: #faf9f7; padding: var(--venue-padding); text-align: center; }
.venue-title { font-family: 'Pinyon Script', cursive; font-size: 5.5rem; color: #1a1a1a; line-height: 1; margin-bottom: 30px; }
.venue-photo-wrap { position: relative; width: 100%; max-width: 700px; margin: 0 auto 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.13); }
.venue-photo-wrap::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.venue-photo { width: 100%; height: 420px; object-fit: cover; display: block; }
.venue-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: #1a1a1a; font-weight: 500; margin-bottom: 16px; letter-spacing: 1px; }
.venue-desc { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-style: italic; color: #444; line-height: 1.8; max-width: 420px; margin: 0 auto 36px; }
.venue-map-btn { display: inline-block; padding: 12px 32px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.6); color: #ffffff; text-decoration: none; font-family: 'Montserrat'; font-size: 0.62rem; letter-spacing: 2.5px; text-transform: uppercase; transition: 0.3s; background: transparent; }
.venue-map-btn:hover { background: rgba(255,255,255,0.2); color: white; }

/* ── Timeline ── */
.section-timeline { padding: 90px 20px; background: #ffffff; }
.tl-header { text-align: center; margin-bottom: 70px; }
.tl-date-sup { font-family: 'Cormorant Garamond', serif; font-size: 1rem; letter-spacing: 2px; color: #888; margin-bottom: 6px; }
.tl-title { font-family: 'Pinyon Script', cursive; font-size: 4.5rem; color: var(--text); line-height: 1.1; }

.timeline-wrap { max-width: 580px; margin: 0 auto; position: relative; }
.tl-center-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #1c1c1c; transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform 1.4s cubic-bezier(0.4,0,0.2,1); }
.tl-center-line.drawn { transform: translateX(-50%) scaleY(1); }

.tl-item { display: flex; align-items: center; margin-bottom: 58px; position: relative; }
.tl-item:last-child { margin-bottom: 0; }

.tl-side { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 75px; }
.tl-side-left { justify-content: flex-end; padding-right: 22px; }
.tl-side-right { justify-content: flex-start; padding-left: 22px; }
.tl-side-left .tl-text { text-align: right; }
.tl-side-right .tl-text { text-align: left; }

.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: #1c1c1c; flex-shrink: 0; z-index: 2; }
.tl-icon { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.tl-time { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.95rem; color: #888; margin-bottom: 3px; }
.tl-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--text); }

/* ── Dress Code ── */
.section-dresscode { background: #faf9f7; padding: var(--dresscode-padding); text-align: center; }
.dc-title { font-family: 'Pinyon Script', cursive; font-size: 5.5rem; color: #1a1a1a; line-height: 1; margin-bottom: 30px; }
.dc-inspo-photo { width: 100%; max-width: 500px; height: auto; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); margin: 0 auto 40px; display: block; }
.dc-text { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-style: italic; color: #1a1a1a; line-height: 1.9; max-width: 480px; margin: 0 auto 44px; white-space: pre-line; }

/* ── Details ── */
.details-block { margin-bottom: 48px; transition: transform 0.4s ease; }
.details-block:last-child { margin-bottom: 0; }
.details-block:hover { transform: translateY(-4px); }
.tl-item { transition: transform 0.35s ease; }
.tl-item:hover { transform: scale(1.02); }
.details-title { font-size: 0.88rem; font-family: 'Montserrat'; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 300; }
.details-text { font-size: 1.2rem; line-height: 1.9; font-weight: 300; color: #8a8480; }
.palette { display: flex; justify-content: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.fabric-circle { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.fabric-circle img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }

/* ── Schedule ── */
.section-schedule { position: relative; background: url('photo/instedHEIC.jpg') center center / cover no-repeat; padding: var(--section-padding); text-align: center; }
.section-schedule::before { content: ''; position: absolute; inset: 0; background: rgba(30,30,30,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sched-title { position: relative; z-index: 1; font-family: 'Pinyon Script', cursive; font-size: 5rem; color: #ffffff; line-height: 1; margin-bottom: 16px; }
.sched-church { background: rgba(255,255,255,0.05); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 36px 32px; margin: 0 auto 24px; max-width: 440px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.sched-church-label { font-family: 'Montserrat'; font-size: 0.62rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.sched-church-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: #ffffff; font-weight: 500; margin-bottom: 10px; line-height: 1.4; }
.sched-church-addr { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: rgba(255,255,255,0.75); font-style: italic; line-height: 1.8; margin-bottom: 24px; flex: 1; }
.sched-list { max-width: 400px; margin: 0 auto; background: rgba(255,255,255,0.05); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 12px 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.sched-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(200,190,178,0.25); }
.sched-item:last-child { border-bottom: none; }
.sched-time { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; color: rgba(255,255,255,0.7); min-width: 76px; text-align: right; }
.sched-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7); flex-shrink: 0; }
.sched-event { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: #ffffff; text-align: left; }
.sched-locations { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; }
.sched-locations .sched-church { margin: 0; flex: 1; min-width: 240px; max-width: 300px; }
.sched-sublabel { font-family: 'Pinyon Script', cursive; font-size: 2.8rem; color: #ffffff; margin-bottom: 24px; margin-top: 50px; }
.sched-footer-note { margin-top: 32px; background: rgba(255,255,255,0.05); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 24px 32px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.sched-band { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-style: italic; color: #ffffff; margin-top: 8px; letter-spacing: 0.3px; }

/* ── RSVP ── */
.rsvp-text { font-style: italic; font-size: 1.1rem; opacity: 0.8; margin-bottom: 40px; line-height: 1.7; }
/* ── RSVP ── */
.section-rsvp { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 20px; background: url('photo/bg.photo.jpg') center/cover no-repeat; }
.section-rsvp::before { content: ''; position: absolute; inset: 0; background: rgba(5,18,10,0.5); }

.rsvp-scene { position: relative; z-index: 1; width: 320px; }

.rsvp-card { background: #fff; padding: 44px 36px 36px; text-align: center; }
.rsvp-kindly { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.4rem; color: #2a2520; margin-bottom: 2px; }
.rsvp-reply { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; letter-spacing: 7px; color: #1a1a1a; font-weight: 500; margin-bottom: 18px; }
.rsvp-desc { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; color: #666; line-height: 1.75; margin-bottom: 26px; }
.rsvp-click { display: inline-block; padding: 12px 38px; border: 1px solid #2a2520; color: #2a2520; text-decoration: none; font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; transition: 0.35s; }
.rsvp-click:hover { background: #2a2520; color: white; }

.rsvp-env-img { width: 100%; display: block; position: relative; z-index: 1; }

/* ── Reveal animation ── */
.reveal-hidden { opacity: 0; transform: translateY(30px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ── Countdown ── */
.hero-countdown { display: flex; gap: 24px; justify-content: center; margin-top: 28px; }
.countdown-item { display: flex; flex-direction: column; align-items: center; }
.countdown-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300; color: white; line-height: 1; }
.countdown-label { font-family: 'Montserrat'; font-size: 0.55rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── RSVP new ── */
.section-rsvp-new { background: #ffffff; padding: var(--section-padding); text-align: center; position: relative; }
.section-rsvp-new::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 1px; background: #c9b99a; }
.rsvp-new-title { font-family: 'Pinyon Script', cursive; font-size: 5.5rem; color: #1a1a1a; line-height: 1; margin-bottom: 30px; }
.section-rsvp-new .elegant-line { background: #c9b99a; }
.rsvp-new-desc { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; color: #1a1a1a; margin-bottom: 40px; line-height: 1.9; }
.rsvp-new-btn { display: inline-block; padding: 15px 52px; border: 1px solid #1a1a1a; color: #1a1a1a; text-decoration: none; font-family: 'Montserrat'; font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase; transition: 0.35s; border-radius: 30px; background: transparent; }
.rsvp-new-btn:hover { background: #1a1a1a; color: white; }

/* ── Footer ── */
.site-footer { position: relative; background: url('photo/bg.photo.jpg') center center / cover no-repeat; padding: 80px 20px 60px; text-align: center; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: rgba(10,25,14,0.25); }
.footer-names { position: relative; z-index: 1; font-family: 'Pinyon Script', cursive; font-size: 3.5rem; color: white; margin-bottom: 14px; }
.footer-date { position: relative; z-index: 1; font-family: 'Montserrat'; font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.footer-note { position: relative; z-index: 1; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.6rem; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.footer-withlove { position: relative; z-index: 1; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }

/* ── Ukrainian language overrides ── */
body.lang-ua .hero-pretitle { font-size: 3rem; }

body.lang-ua .invite-text-new,
body.lang-ua .dc-text,
body.lang-ua .details-text,
body.lang-ua .rsvp-desc,
body.lang-ua .sched-event,
body.lang-ua .venue-desc { font-size: 1.2rem; }

body.lang-ua .label,
body.lang-ua .details-title,
body.lang-ua .sched-church-label { color: #1a1a1a; }

body.lang-ua .elegant-line { background: #1a1a1a; }

/* ── Mobile ── */
@media (max-width: 600px) {
    .hero-names { font-size: 48px !important; }
    .hero-pretitle { font-size: 2.2rem; }
    .section-light,
    .section-dark,
    .section-invite-new,
    .section-schedule,
    .section-rsvp-new { padding: var(--section-padding-mobile); }
    .section-venue { padding: var(--venue-padding-mobile); }
    .section-dresscode { padding: var(--dresscode-padding-mobile); }
    .timeline::before { left: 72px; }
}
