/* =========================
   ОСНОВНЫЕ НАСТРОЙКИ
   ========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;

    background: #111;
    color: #fff;

    overflow-x: hidden;
}


/* =========================
   ОБЛОЖКА
   ========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.8)
        ),
        url("images/photo_1.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
}

.small-title {
    font-size: 12px;
    letter-spacing: 5px;

    opacity: 0.7;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 10vw, 80px);

    margin-bottom: 20px;
}

.subtitle {
    font-size: 17px;

    line-height: 1.6;

    opacity: 0.8;
}

.scroll-hint {
    margin-top: 60px;

    font-size: 30px;

    animation: scrollArrow 2s infinite;
}


/* =========================
   АЛЬБОМ
   ========================= */

.album {
    width: 100%;

    max-width: 400px;

    margin: auto;

    padding: 30px 15px;
}


/* =========================
   ОДНО ВОСПОМИНАНИЕ
   ========================= */

.memory {
    margin-bottom: 100px;
}

.memory img,
.memory video {
    width: 100%;

    display: block;

    border-radius: 14px;

    object-fit: cover;
}


/* =========================
   ПОДПИСЬ
   ========================= */

.caption {
    padding: 20px 5px;
}

.caption h2 {
    font-size: 24px;

    margin-bottom: 10px;
}

.caption p {
    font-size: 16px;

    line-height: 1.6;

    color: #aaa;
}


/* =========================
   ВИДЕО
   ========================= */

.video-memory video {
    background: #000;
}


/* =========================
   ФИНАЛ
   ========================= */

.ending {
    text-align: center;

    padding: 100px 20px;
}

.ending h2 {
    font-size: 40px;

    margin-bottom: 20px;
}

.ending p {
    color: #999;

    line-height: 1.6;

    margin-bottom: 30px;
}

.ending span {
    font-size: 35px;
}


/* =========================
   FOOTER
   ========================= */

footer {
    text-align: center;

    padding: 30px;

    color: #555;

    font-size: 13px;
}


/* =========================
   АНИМАЦИЯ СТРЕЛКИ
   ========================= */

@keyframes scrollArrow {

    0% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

}

.memory {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.memory.visible {
    opacity: 1;
    transform: translateY(0);
}