* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: "Marck Script", cursive;
    background: #d2a983;
    color: #6d5c54;
}

section {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(8px, 2vw, 12px);
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 6s ease;
    filter: brightness(0.9);
}

section.visible::before {
    transform: scale(1);
}

.invite-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: clamp(16px, 2.5vw, 20px);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(10px, 3vw, 20px);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.invite-text::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    opacity: 0.4;
    pointer-events: none;
}

.invite-text::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 30px rgba(255,255,255,0.15);
    pointer-events: none;
}

em {
    color: #a67c6b;
}

.invite-text p {
    margin-bottom: clamp(7px, 3vw, 15px);
}

.invite-text .highlight {
    font-size: clamp(16px, 3vw, 22px);
    font-weight: bold;
    letter-spacing: 1px;
}

.video-bg::before {
    display: none;
}

.video-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 3vw, 24px);
    z-index: 9999;
}

#loader.hidden {
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 245, 240, 0.6);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
}

.visible .content {
    opacity: 1;
    transform: translateY(0);
}

.block {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.visible .block:nth-child(1) { transition-delay: 0.3s; }
.visible .block:nth-child(2) { transition-delay: 0.6s; }
.visible .block:nth-child(3) { transition-delay: 0.9s; }
.visible .block:nth-child(4) { transition-delay: 1.2s; }

.visible .block {
    opacity: 1;
    transform: translateY(0);
}

@font-face {
    font-family: 'Classica Two';
    src: url('Classica Two.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1, h2 {
	line-height: 1.5;
    font-family: 'Classica Two', serif;
    font-size: clamp(26px, 5vw, 48px);
    color: #4c2e18;
	padding: clamp(20px, 2vw, 30px);
    margin-bottom: clamp(5px, 2vw, 10px);
}

p {
    font-size: clamp(16px, 2.2vw, 20px);
}

.divider {
    position: relative;
    width: 160px;
    height: 20px;
    margin: clamp(7px, 2vw, 12px) auto;
    background: linear-gradient(#a67c6b55, #a67c6b55) left center / 40% 2px no-repeat,
                linear-gradient(#a67c6b55, #a67c6b55) right center / 40% 2px no-repeat;
}

.divider::after {
    content: "♡";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    font-size: 16px;
    color: #a67c6b;
}

.dress-wrapper {
    position: relative;
    max-width: 620px;
    margin: clamp(7px, 2vw, 15px) auto;
}

.dress-img {
    max-height: 95vh;
    width: auto;
    max-width: 100%;
    width: 100%;
    max-width: 680px;
    border-radius: 20px;
    margin: 15px auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.dress-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 35%;
    color: #ffffff;
    border-radius: 20px;
}

.dress-text h1 {
    color: #d2b1a4;
}

.slider-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72);
}

.map-container {
    margin: 25px auto 0;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.map-container iframe {
    width: 100%;
    height: 320px;
    border: none;
}

.place-name {
    font-size: 1.6rem;
    color: #4c2e18;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.place-address {
    font-size: 1rem;
    color: #7a6a5f;
    line-height: 1.6;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.icon-link {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.icon-link:hover {
    transform: scale(1.1);
}

.icon-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#schedule-section {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 100px;
    position: relative;
}

.schedule-card {
    margin: 40px auto 0;
    max-width: 460px;
    padding: 10px 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
    position: relative;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-icon {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0.95);
    z-index: 2;
}

.timeline-line {
    position: absolute;
    left: 44px;
    top: 70px;
    bottom: -40px;
    width: 2px;
    background: #d4b8a8;
    z-index: 1;
}

.schedule-item:last-child .timeline-line {
    display: none;
}

.time-info {
    flex: 1;
}

.time {
    font-size: 2.35rem;
    color: #a67c6b;
    line-height: 1.05;
    margin-bottom: 5px;
}

.event {
    font-size: 1.1rem;
    color: #6d5c54;
}

.decorative-flowers {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
    user-select: none;
}

.flowers-top-right {
    top: -80px;
    right: -60px;
    width: 380px;
    height: auto;
    transform: rotate(12deg);
}

.flowers-bottom-left {
    bottom: -100px;
    left: -70px;
    width: 420px;
    height: auto;
    transform: rotate(-15deg);
}

.heart {
    font-size: 40px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.age-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.age-row h2 {
    margin: 0;
}

.branch {
    width: 60px;
}

.branch.left {
    transform: translateX(-6px);
}

.calendar-card {
    transform: scale(1.4);
    transform-origin: center;
}

.video-card {
    max-width: 560px;
    margin: 20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.video-card video {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
}

.confirm-btn {
    font-family: "Marck Script", cursive;
    font-size: clamp(16px, 2.5vw, 22px);
    letter-spacing: 2px;
    padding: 18px 40px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.4);
    background: linear-gradient(145deg, #d2b49c, #c3a287);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.confirm-btn:active {
    transform: scale(0.98);
}

/* ====================== МЕДИА-ЗАПРОСЫ ====================== */

@media (max-width: 480px) {
    .dress-text h2,
    .dress-text p {
        font-size: clamp(16px, 3vw, 22px);
    }
}

@media (max-width: 520px) {
    .schedule-icon {
        width: 70px;
        height: 70px;
    }
    .time {
        font-size: 2.05rem;
    }
    .timeline-line {
        left: 35px;
    }
}

@media (max-width: 768px) {
    h1, h2 {
        font-size: clamp(26px, 2.2vw, 45px);
    }
    .map-container iframe {
        height: 260px;
    }
    .flowers-top-right {
        width: 280px;
        top: -60px;
        right: -40px;
    }
    .flowers-bottom-left {
        width: 300px;
        bottom: -80px;
        left: -50px;
    }
}

@media (max-width: 480px) {
    .flowers-top-right {
        width: 220px;
        top: -40px;
        right: -30px;
    }
    .flowers-bottom-left {
        width: 240px;
        bottom: -70px;
        left: -40px;
    }
}

/* ====================== ИКОНКА МУЗЫКИ ====================== */

.music-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.85);
    color: #6d5c54;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    border: 2px solid #d2b49c;
}

.music-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
}

.music-icon.playing {
    background: #d2b49c;
    color: white;
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% { box-shadow: 0 0 0 0 rgba(210, 180, 156, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(210, 180, 156, 0); }
    100% { box-shadow: 0 0 0 0 rgba(210, 180, 156, 0); }
}

/* Адаптив */
@media (max-width: 480px) {
    .music-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}