/* --- СБРОС СТИЛЕЙ И СКРЫТИЕ СКРОЛЛБАРА --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    -ms-overflow-style: none;  /* Скрытие скроллбара для IE/Edge */
    scrollbar-width: none;     /* Скрытие скроллбара для Firefox */
}

/* Скрытие скроллбара для Chrome, Safari, Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

/* Блокировка прокрутки при открытом Overlay */
body.locked {
    overflow: hidden;
    height: 100vh;
}

/* --- СТАРТОВАЯ ПЛАШКА (OVERLAY) --- */
#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 400px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.overlay-card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.overlay-card p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 30px;
}

#start-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

#start-btn:hover {
    transform: scale(1.05);
    background: #e5e5e5;
}

#start-btn:active {
    transform: scale(0.95);
}

/* --- ХОЛСТ CANVAS --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* --- ТЕКСТОВЫЕ СЕКЦИИ --- */
.step {
    height: 200vh; /* Высокие секции, чтобы было пространство для анимации фото */
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    position: sticky;
    top: 40vh; /* Текст фиксируется по центру экрана при скролле */
    max-width: 500px;
    background: rgba(0, 0, 0, 0.7);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}