/* СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Arial', sans-serif; 
    height: 100vh; 
    overflow: hidden; 
    color: #333;
    background: #f5f5f5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(200,200,200,0.2)" stroke-width="2" x="5" y="5" width="90" height="90" rx="10" ry="10"/></svg>');
    background-size: 20px 20px;
}

/* КОНТЕЙНЕР СЛАЙДОВ */
.slides-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СЛАЙДОВ */
.slide {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* ПЕРВЫЙ СЛАЙД (ГЕРОЙ) */
#slide0 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    background-image: url('../img/bg_slide0.jpg');
    background-size: cover;
    background-position: center top;
}
.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}
.info-text {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}
.info-text.author {
  margin-top: 1.5rem;
}
.start-btn {
    padding: 15px 50px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    backdrop-filter: blur(5px);
    font-weight: bold;
}
.start-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* СЛАЙДЫ С ЗАМЕТКАМИ - ЭФФЕКТ КАРТОНА */
.content-slide {
    background: transparent;
}
.slide-content {
    max-width: 900px;
    width: 90%;
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 16px;
    max-height: 80vh;
    overflow-y: auto;
    
    /* Эффект гофрированного картона */
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.05),
        0 2px 4px rgba(0,0,0,0.05),
        0 4px 8px rgba(0,0,0,0.05),
        0 8px 16px rgba(0,0,0,0.05),
        0 16px 32px rgba(0,0,0,0.05),
        0 32px 64px rgba(0,0,0,0.05),
        
        /* Тени для эффекта "слоёв" */
        0 2px 3px rgba(0,0,0,0.1),
        0 4px 6px rgba(0,0,0,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.05),
        inset 0 -2px 0 rgba(0,0,0,0.02);
        
    border: 1px solid #f0f0f0;
    position: relative;
}
/* Эффект "слоев" картона */
.slide-content::before,
.slide-content::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 10px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    z-index: -1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.slide-content::before {
    bottom: -8px;
    width: calc(100% - 20px);
}
.slide-content::after {
    bottom: -16px;
    width: calc(100% - 40px);
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}
.slide-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: left;
}
.slide-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.slide-image-description {
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* НАВИГАЦИОННАЯ ПАНЕЛЬ (ВНИЗУ) */
.nav-panel {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 100;
    flex-wrap: wrap;
    max-width: 90%;
    margin: 0 auto;
}
.nav-btn {
    width: 30px;
    height: 30px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
}
.nav-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.15);
}
.nav-btn.active {
    background: #3498db;
    border-color: #2980b9;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

/* ИНДИКАТОР ПРОГРЕССА */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0,0,0,0.05);
    z-index: 1000;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.2s ease;
}

/* СКРЫТЬ СКРОЛЛБАР */
.slides-container::-webkit-scrollbar {
    display: none;
}
.slides-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .slide-content {
        padding: 30px;
        width: 95%;
    }
    .nav-btn {
        width: 25px;
        height: 25px;
        margin: 0 3px;
    }
}