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

body{
    font-family:-apple-system,BlinkMacSystemFont,sans-serif;
    background:#f7f3f4;
    color:#2b2b2b;
    overflow-x:hidden;
}

/* HERO */
.hero{
    position:relative;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.hero-bg{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    transform:scale(1.08);
}

.hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
            to bottom,
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.45)
    );
}

.hero-content{
    position:relative;
    text-align:center;
    color:white;
    z-index:2;
}

.hero h1{
    font-family:'Playfair Display', serif;
    font-size: clamp(60px, 8vw, 120px);
    font-weight:600;
    letter-spacing:.04em;
    margin-bottom:20px;
}

.hero p{
    font-family:'Inter', sans-serif;
    font-size:20px;
    font-weight:300;
    opacity:.9;
}


/* TEXT LAYERS */
.layer{
    height:180vh;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

.layer h2{
    font-size:56px;
    text-align:center;
    max-width:800px;
}

/* SCROLL GLOW ANIMATION */
.layer::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle, rgba(231,184,193,0.4), transparent 70%);
    filter:blur(60px);
    animation:pulse 8s infinite ease-in-out;
}

@keyframes pulse{
    0%{ transform:scale(.9); }
    50%{ transform:scale(1.2); }
    100%{ transform:scale(.9); }
}

/* CAROUSEL */
.carousel-sticky{
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-inner{
    position: relative;
    width: 40vw;       /* вертикальная фотка узкая */
    height: 90vh;      /* вертикальная фотка высокая */
}

.slide{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;                  /* красивое закругление */
    border: 4px solid rgba(231,184,193,0.4); /* тонкая рамка */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* подпись под фоткой */
.carousel-caption{
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(24px, 4vw, 36px);  /* крупный, адаптивный */
    text-align: center;
    color: #2b2b2b;
    min-height: 40px;  /* чтобы текст не прыгал */
}


/* таймлайн */
.timeline{
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: space-between; /* Разнесет подписи по ширине */
    width: 60%; /* подгоняем под ширину карусели */
    margin: 0 auto;
}

.timeline span{
    opacity: 0.4;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    white-space: nowrap;
}

.timeline span.active{
    opacity: 1;
    transform: scale(1.2);
    color: #e7b8c1;
}
#carousel-hearts{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}


/* HEARTS */
.hearts-section{
    height:220vh;
}

#hearts{
    position:sticky;
    top:0;
    width:100%;
    height:100vh;
}

/* FINAL */
.final{
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:72px;
}
