* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
}

/* Стили для контейнера модулей */
.modules-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
}

/* Стили для каждого модуля */
.module {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
	background-color: #ffffff;
}

/* Содержимое модуля */
.module-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.module-number {
    font-size: 10rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.module-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    letter-spacing: 2px;
	
	background: linear-gradient(90deg, #121212, #2c2c2c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.module-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопка прокрутки вверх */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
	
	mix-blend-mode: difference;
	/* Изолирует элемент от фона для правильной работы blend-mode*/
    isolation: isolate; 
}

.scroll-top-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


/* Навигационные стрелки */
.nav-arrow {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    color: white;
    font-size: 2rem;
    z-index: 1000;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
	
    animation: bounce 2s infinite;
	
	mix-blend-mode: difference;
	/* Изолирует элемент от фона для правильной работы blend-mode*/
    isolation: isolate; 
}

.nav-arrow:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Адаптивность */

/* Компьютерная версия (по умолчанию) */
@media (min-width: 768px) {
	.module-1 {
		background-color: #1a1a18;
		background-image: url('../images/computer/1.jpg'); 
		}
	.module-2 { background-image: url('../images/computer/2.jpg'); }
	.module-3 { 
		background-image: url('../images/computer/3.jpg');
		background-size: contain;		
		}
	.module-4 { 
		background-image: url('../images/computer/4.jpg');
		background-size: contain;			
		}
	.module-5 { 
		background-image: url('../images/computer/5.jpg');
		background-size: contain;		
		}
	.module-6 { background-image: url('../images/computer/6.jpg'); }
}

@media (min-width: 768px) and (max-width: 1070px) {
	.module-1 { background-size: 110vw auto; background-color: #1a1a18;}		
}

	
@media (max-width: 768px) {	
	.module-1 { 
		background-color: #121617;
		background-image: url('../images/mobile/1.jpg');
		}
	.module-2 { background-image: url('../images/mobile/2.jpg'); }
	.module-3 { background-image: url('../images/mobile/3.jpg'); }
	.module-4 { 
		background-image: url('../images/mobile/4.jpg'); 
		background-size: contain;	
		}
	.module-5 { 
		background-image: url('../images/mobile/5.jpg'); 
		background-size: contain;
		}
	.module-6 { background-image: url('../images/mobile/6.jpg'); }
	
    .module-number {
        font-size: 6rem;
    }
    
    .module-title {
        font-size: 2.2rem;
    }
    
    .module-content .lead {
        font-size: 1.2rem;
    }
       
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .scroll-dot {
        width: 12px;
        height: 12px;
    }
}

	
@media (max-width: 480px) {
	
    .module-number {
        font-size: 4.5rem;
    }
    
    .module-title {
        font-size: 1.8rem;
    }
    
    .module-content {
        padding: 1rem;
    }
    
}

