html { 
    scroll-snap-type: y proximity; 
    scroll-behavior: smooth; 
    width: 100%;
    position: relative;
}

body { 
    margin: 0; 
    font-family: 'Montserrat', sans-serif; 
    background: #1a1a1a; 
    color: #fff; 
    overflow-x: hidden; 
    width: 100%;
    position: relative;
}

* { 
    box-sizing: border-box; 
}

section { 
    scroll-snap-align: start; 
    min-height: 100vh; 
    padding: 2vh 0;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

section.long-text { 
    height: auto; 
    justify-content: flex-start; 
    padding: 6vh 0; 
}

.container { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%; 
}

.h-100 { 
    height: 100%; 
}

.flex-center { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.flex-columns { 
    display: flex; 
    gap: 30px; 
    align-items: stretch; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 2vh;
    max-width: 1000px; 
    margin-left: auto; 
    margin-right: auto; 
}

.section-number { 
    color: #b32d2e; 
    font-weight: 900; 
    font-size: clamp(16px, 2.3vh, 24px);
    letter-spacing: 6px; 
    display: block; 
    margin-bottom: 0.5vh; 
}

.section-header h2 { 
    font-size: clamp(22px, 3.5vh, 45px);
    margin: 0 0 1vh 0; 
    text-transform: uppercase; 
    line-height: 1.2; 
    color: #fff; 
}

.section-header h2.dark-text { 
    color: #1a1a1a; 
}

.lead-text { 
    font-size: clamp(16px, 2.2vh, 20px); 
    line-height: 1.5; 
    color: #bbb; 
    margin: 0; 
}

.text-center { 
    text-align: center; 
}

.text-light { 
    color: #ddd; 
}

.red-text { 
    color: #b32d2e; 
}


.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 3vh;
}

.quote-author img {
    width: clamp(50px, 7vh, 80px);
    height: clamp(50px, 8vh, 80px);
    border-radius: 30%;
    object-fit: cover;
    border: 2px solid #b32d2e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}


/* 1. HERO                                   */

.hero { 
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.95) 100%
    ), 
    url('images/frontbg.png') center/cover fixed #000; 
    text-align: center;
    position: relative;
}

.hero h1 { 
    margin: 0; 
    font-size: clamp(40px, 16vh, 120px); 
    text-shadow: 2px 2px 50px rgba(0,0,0,0.6); 
}

.hero p { 
    font-size: clamp(20px, 4.5vh, 75px); 
    margin-top: 2.5vh; 
}

.hero span { 
    color: #b32d2e; 
    font-weight: bold; 
    display: block; 
    margin-top: 2.5vh;
    font-size: clamp(18px, 3.5vh, 36px);
}


.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounceArrow 2s infinite;
    opacity: 0.7;
    cursor: pointer;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

.scroll-arrow:hover {
    opacity: 1;
}


/* 2. BALCONY & QUOTE                        */


.balcony {
    background: url('images/balcony-pc3.png') center/cover;
    max-height: 100vh;
    
}

.columns { 
    display: grid; 
    grid-template-columns: 1fr 1.1fr; 
    gap: 4vh; 
    align-items: center; 
}

.text-side p { 
    margin-bottom: 1vh; 
    font-size: clamp(16px, 2.4vh, 22px); 
    line-height: 1.6; 
}

.image-side img { 
    width: 100%; 
    max-height: 45vh; 
    object-fit: contain; 
    border-radius: 8px; 
}

.caption { 
    font-size: clamp(12px, 1.8vh, 16px); 
    color: #888; 
    text-align: center; 
    margin-top: 1.5vh; 
}

.separator-quote { 
    background: #111; 
    border-top: 1px solid #333; 
    border-bottom: 1px solid #333; 
    text-align: center; 
}

.separator-quote h2 { 
    font-size: clamp(20px, 3.5vh, 32px); 
    color: #fff; 
    margin: 0; 
    line-height: 1.4;
}

.separator-quote blockquote { 
    margin: 4vh auto; 
    max-width: 1000px; 
    font-size: clamp(20px, 3.2vh, 30px); 
    line-height: 1.5; 
    color: #ccc; 
    font-style: italic; 
}

.separator-quote cite { 
    display: block; 
    font-size: clamp(14px, 2vh, 18px); 
    color: #b32d2e; 
    text-transform: uppercase; 
    font-style: normal;
}

.mobile-only-img {
    display: none;
}


/* 3. DIALOGUE                               */

.fullscreen-dialogue { 
    position: relative; 
    background: url('images/strategy.jpg') center/cover fixed #000; 
    justify-content: flex-start; 
    padding-top: 10vh; 
}

.fullscreen-dialogue .container {
    justify-content: flex-start;
}

.dialogue-bg-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, rgba(15,15,15,0.95), rgba(30,30,30,0.85)); 
}

.relative-z { 
    position: relative; 
    z-index: 2; 
}

.dialogue-intro p { 
    margin-bottom: 2vh; 
    font-size: clamp(16px, 2.2vh, 20px); 
    line-height: 1.6;
}

.chat-container { 
    width: 100%; 
    max-width: 1000px; 
    display: flex; 
    flex-direction: column; 
    gap: 2vh; 
    margin: 0 auto; 
    min-height: 55vh; 
}

.bubble { 
    display: flex; 
    align-items: flex-end; 
    gap: 20px; 
    max-width: 85%; 
    transition: all 0.4s ease-out; 
}

.message-content { 
    padding: 2vh 25px; 
    border-radius: 12px; 
    font-size: clamp(16px, 2.4vh, 22px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.4); 
    line-height: 1.5;
}

.rokossovsky-bubble { 
    align-self: flex-start; 
}

.rokossovsky-bubble .message-content { 
    background: #2a2a2a; 
    border-left: 5px solid #777; 
    border-bottom-left-radius: 2px; 
}

.stalin-bubble { 
    align-self: flex-end; 
    flex-direction: row; 
}

.stalin-bubble .message-content { 
    background: #4a1515; 
    border-right: 5px solid #b32d2e; 
    border-bottom-right-radius: 2px; 
}

.avatar { 
    width: clamp(50px, 8vh, 80px); 
    height: clamp(50px, 8vh, 80px); 
    border-radius: 50%; 
    border: 3px solid #444; 
    object-fit: cover; 
}

.stalin-final { 
    align-self: center; 
    text-align: center; 
    margin-top: 3vh; 
    padding: 2.5vh; 
    border: 1px dashed rgba(179,45,46,0.5); 
    background: rgba(179,45,46,0.15); 
    font-size: clamp(18px, 2.6vh, 26px); 
    font-weight: 700; 
    border-radius: 10px; 
}


.typing-indicator { 
    display: flex; 
    gap: 8px; 
    justify-content: center; 
}

.typing-indicator span { 
    width: 8px; 
    height: 8px; 
    background: #999; 
    border-radius: 50%; 
    animation: bounce 1.3s infinite ease-in-out; 
}

.typing-indicator span:nth-child(2) { 
    animation-delay: 0.2s; 
}

.typing-indicator span:nth-child(3) { 
    animation-delay: 0.4s; 
}

@keyframes bounce { 
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; } 
    40% { transform: translateY(-5px); opacity: 1; } 
}

.hidden { 
    display: none !important; 
}

.opacity-0 { 
    opacity: 0; 
    transform: translateY(15px); 
}

.fade-in-bubble { 
    opacity: 1 !important; 
    transform: translateY(0); 
}


/* 4. MASKING                                */

.masking-parallax { 
    position: relative; 
    overflow-x: hidden; 
    width: 100vw;
    max-width: 100%;
}

.parallax-bg { 
    position: absolute; 
    inset: 0; 
    background: url('images/swampbg.jpg') center/cover fixed; 
    filter: brightness(0.3); 
    z-index: -1; 
}

.intro-text p { 
    font-size: clamp(16px, 2.4vh, 22px); 
    margin: 0 0 4vh; 
    color: #ccc; 
    line-height: 1.6;
}

.big-card { 
    flex: 1; 
    background: rgba(30,30,30,0.8); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 10px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    min-height: 50vh;
    
}

.maskirovka3 {
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.75) 100%
    ), url('images/maskirovka3.jpg') center/cover fixed;
}

.mokrostupi {
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.75) 100%
    ), url('images/mokrostupi.jpg') center/cover fixed;
}

.card-text { 
    padding: 3vh 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
}

.card-text h3 { 
    color: #b32d2e; 
    margin: 0 0 1.5vh; 
    font-size: clamp(20px, 2.8vh, 26px); 
}

.card-text p { 
    font-size: clamp(16px, 2.4vh, 24px); 
    line-height: 1.5; 
    margin: 1; 
}



.bush-note { 
    text-align: center; 
    margin-top: 3vh; 
    font-style: italic; 
    color: #aaa; 
    font-size: clamp(14px, 2vh, 20px); 
}


/* 5. RAIL WAR                               */

.rail-war { 
    background: #151515; 
    
}

.full-width-image .main-img { 
    width: 100%; 
    height: 30vh; 
    object-fit: cover; 
    border-radius: 8px; 
    filter: grayscale(0.4); 
    margin-bottom: 3vh; 
}

.rail-stats { 
    display: flex; 
    justify-content: center; 
    gap: 4vh; 
    margin-bottom: 4vh; 
    background: rgba(255,255,255,0.05); 
    padding: 2.5vh; 
    border-radius: 8px; 
}

.stat-item { 
    text-align: center; 
}

.stat-value { 
    display: block; 
    font-size: clamp(28px, 5vh, 48px); 
    font-weight: 900; 
    color: #b32d2e; 
    margin-bottom: 1vh;
}

.stat-label { 
    font-size: clamp(12px, 1.8vh, 18px); 
    color: #aaa; 
    text-transform: uppercase; 
}

.stat-divider { 
    width: 1px; 
    background: #333; 
}

.rail-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 3vh; 
}

.rail-card { 
    background: #1e1e1e; 
    padding: 3vh; 
    border-radius: 8px; 
    border-top: 4px solid #b32d2e; 
}

.rail-card h3 { 
    margin: 0 0 1.5vh; 
    font-size: clamp(18px, 2.5vh, 24px); 
    color: #fff; 
    
}

.rail-card p { 
    font-size: clamp(14px, 2.2vh, 18px); 
    color: #ccc; 
    margin: 0; 
    line-height: 1.5;
}


/* 6. TIMELINE                               */

.phase-title { 
    text-align: center; 
    font-size: clamp(20px, 3vh, 32px); 
    color: #b32d2e; 
    margin: 5vh 0 3vh; 
    text-transform: uppercase; 
}

.timeline { 
    position: relative; 
    max-width: 1600px; 
    margin: 0 auto; 
    overflow-x: hidden; 
    width: 100vw;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.timeline::after { 
    content: ''; 
    display: table; 
    clear: both; 
}

.timeline-line { 
    position: absolute; 
    left: 50%; 
    top: 0; 
    bottom: 0; 
    width: 6px; 
    background: #b32d2e; 
    transform: translateX(-50%); 
    border-radius: 3px; 
}

.timeline-item { 
    width: 50%; 
    padding: 20px 50px; 
    position: relative; 
    box-sizing: border-box; 
}

.timeline-item.left { 
    float: left; 
    clear: both; 
    text-align: right; 
}

.timeline-item.right { 
    float: right; 
    clear: both; 
    text-align: left; 
}

.timeline-item::after { 
    content: ''; 
    position: absolute; 
    top: 35px; 
    width: 20px; 
    height: 20px; 
    background: #111; 
    border: 5px solid #b32d2e; 
    border-radius: 50%; 
    z-index: 2; 
}

.timeline-item.left::after { 
    right: -14px; 
}

.timeline-item.right::after { 
    left: -14px; 
}

.timeline-content { 
    background: #1a1a1a; 
    padding: 30px; 
    border-radius: 10px; 
    border: 1px solid #333; 
}

.highlight-item .timeline-content { 
    border-color: #b32d2e; 
    background: rgba(179,45,46,0.05); 
}

.timeline-content .date { 
    font-weight: 900; 
    color: #b32d2e; 
    font-size: clamp(14px, 2vh, 18px); 
    margin-bottom: 8px; 
}

.timeline-content h3 { 
    margin: 0 0 15px; 
    font-size: clamp(20px, 2.8vh, 26px); 
}

.timeline-content p { 
    color: #ccc; 
    font-size: clamp(15px, 2vh, 18px);
    margin: 0; 
    line-height: 1.6;
}

.mid-quote { 
    text-align: center; 
    padding: 3vh; 
    margin: 6vh auto; 
    background: rgba(255,255,255,0.03); 
    border-radius: 12px; 
    border-left: 5px solid #b32d2e; 
    max-width: 900px; 
}

.mid-quote p { 
    font-style: italic; 
    font-size: clamp(20px, 3vh, 28px); 
    color: #eee; 
    margin-bottom: 15px; 
    line-height: 1.5;
}

.mid-quote cite { 
    color: #b32d2e; 
    font-weight: bold; 
    font-size: clamp(14px, 2.2vh, 18px);
}


/* 7. WALTZ                                  */

.big-waltz { 
    position: relative;
    background: url('images/waltz2.png') center/cover fixed #000;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    min-height: 100vh; 
    z-index: 1;
}

.big-waltz::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.6), rgba(0,0,0,0.95));
    z-index: -1;
}

.big-waltz .section-header { 
    margin-bottom: 3vh; 
}

.text-center-box { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
    text-align: center; 
}

.text-center-box p { 
    font-size: clamp(18px, 2.6vh, 24px); 
    margin: 0 0 2vh; 
    color: #ddd; 
    line-height: 1.6; 
}

.emotional-accent { 
    font-size: clamp(20px, 3vh, 28px) !important; 
    font-weight: bold; 
    color: #fff !important; 
    margin-top: 3vh !important; 
    padding: 2.5vh; 
    border-top: 2px solid #b32d2e; 
    border-bottom: 2px solid #b32d2e; 
    display: inline-block; 
    background: rgba(0,0,0,0.4);
}


/* 8. ANALYSIS                               */

.analysis-section { 
    background: #f4f1ea; 
    color: #333; 
}

.facts-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5vh 4vh; 
    align-items: stretch; 
}

.fact-item h3 { 
    margin: 0 0 2vh; 
    font-size: clamp(20px, 3vh, 26px); 
}

.fact-item p { 
    font-size: clamp(16px, 2.4vh, 20px); 
    line-height: 1.6; 
    margin: 0; 
}

.chart-box { 
    background: #fff; 
    padding: 3vh; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.chart-box h4 { 
    margin: 0 0 3vh 0; 
    color: #333; 
    font-size: clamp(18px, 2.5vh, 22px);
}

.bar-chart { 
    display: flex; 
    justify-content: space-around; 
    align-items: flex-end; 
    height: 20vh; 
    border-bottom: 3px solid #ccc; 
    flex-grow: 1; 
}

.bar-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 40%; 
    height: 100%; 
    justify-content: flex-end; 
}

.bar { 
    width: clamp(60px, 30vw, 150px); 
    position: relative; 
    transition: height 1s; 
    display: flex; 
    justify-content: center; 
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.bar span { 
    position: static; 
    font-weight: bold; 
    font-size: clamp(12px, 2vh, 16px); 
    color: #fff; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding-top: 10px;
}

.bar.myth { background: #999; } 
.bar.reality { background: #b32d2e; }
.bar.losses-de { background: #444; } 
.bar.losses-su { background: #b32d2e; }

.chart-box label { 
    margin-top: 2vh; 
    font-size: clamp(14px, 2vh, 18px); 
    font-weight: bold; 
    color: #555; 
}


/* 9. RESULTS                                */

.results-section { 
    background: #1a1a1a; 
}

.results-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 3vh 4vh; 
    margin-bottom: 4vh; 
}

.result-item h3 { 
    margin: 0 0 1vh; 
    font-size: clamp(18px, 2.4vh, 22px); 
}

.result-item p { 
    color: #ccc; 
    font-size: clamp(14px, 2vh, 18px); 
    margin: 0; 
    line-height: 1.5; 
}

.big-number { 
    display: block; 
    font-size: clamp(40px, 6vh, 60px); 
    font-weight: 900; 
    color: #b32d2e; 
    margin-bottom: 0.5vh; 
}

.final-quote { 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 2.5vh; 
    border: 2px dashed #444; 
    border-radius: 12px;
}

.final-quote p { 
    font-size: clamp(18px, 2.6vh, 24px); 
    font-style: italic; 
    margin: 0 0 1.5vh; 
    line-height: 1.5;
}


/* 10. COMMANDERS                            */




.commanders-main { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2vh;
    margin: 0 12vh 2vh;
    
}

.commanders-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5vh;
    margin: 0 12vh 2vh;
}

.commander-card { 
    background: #1a1a1a; 
    border-bottom: 4px solid #b32d2e; 
    text-align: center; 
    border-radius: 10px; 
    overflow: hidden; 
}

.commander-card img { 
    width: 100%; 
    height: 20vh;
    min-height: 250px;
    object-fit: cover; 
    filter: grayscale(1); 
    transition: 0.3s; 
}

.commander-card.large img { 
    height: 26vh;
    min-height: 400px;
}

.commander-card:hover img { 
    filter: grayscale(0); 
}

.commander-info { 
    padding: 1.5vh;
}

.commander-info h4 { 
    margin: 0; 
    color: #fff; 
    font-size: clamp(14px, 2vh, 18px); 
}

/* ========================================= */
/* ФУТЕР                                     */
/* ========================================= */
.main-footer { 
    padding: 4vh 0; 
    background: #000; 
    border-top: 1px solid #222; 
    color: #555; 
    font-size: 14px; 
    text-align: center;
}

.sources ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 20px;
}

.sources h5 { 
    color: #888; 
    margin: 0 0 1.5vh; 
    font-size: 16px; 
}

.copyright {
    margin-top: 3vh;
}

@media (max-width: 1024px) {
    html { scroll-snap-type: none !important; }
    
    section { 
        height: auto !important; 
        min-height: 200px !important; 
        padding: 60px 0 !important; 
        display: flex !important; 
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .container { 
        padding: 0 20px !important; 
        width: 100% !important; 
        max-width: 100% !important;
        display: block !important; 
    }

    .hero {
        min-height: 100dvh !important;
        height: 100dvh !important;
        padding: 80px 20px 60px !important; 
        justify-content: center !important;
    }
    .hero .hero-content {
        display: flex;
        flex-direction: column;
        gap: 15px; 
    }
    .hero h1 {
        font-size: clamp(32px, 12vw, 60px) !important; 
        line-height: 1.1 !important;
    }
    .hero p {
        font-size: clamp(18px, 4vw, 24px) !important;
        margin-top: 0 !important;
    }
    .hero span {
        font-size: clamp(14px, 4vw, 18px) !important;
        margin-top: 0 !important;
    }

    .balcony {
        height: auto !important;
        max-height: none !important; 
        padding: 60px 0 !important;
        background: #000;
        background-attachment: scroll !important;
    }

    .balcony .container {
        display: flex !important;
        flex-direction: column !important;
    }

    .balcony .columns {
        display: flex !important;
        flex-direction: column !important; 
        gap: 20px !important;
    }

    .balcony .text-side {
        width: 100% !important;
        order: 1; 
        padding: 0 !important;
    }

    .balcony .text-side p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }

    .balcony .image-side {
        width: 110% !important;
        order: 2; 
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
    }

    .mobile-only-img {
        display: block !important;
    }

    #mobile-balcony-image {
        display: block !important;
        width: 120% !important;
        max-width: 450px !important; 
        height: auto !important;
        border-radius: 10px;
    }

    .chat-container { 
        min-height: 170vh;
        gap: 4vh; 
    }

    #mobile-waltz-image {
        display: block !important;
        width: 100% !important;
        max-width: 450px !important; 
        height: auto !important;
        border-radius: 10px;
    }

    .separator-quote h2 { 
        font-size: clamp(16px, 2.2vh, 20px); 
        color: #fff; 
        margin: 0; 
        line-height: 1.4;
    }

    .separator-quote blockquote { 
        margin: 4vh auto; 
        max-width: 1000px; 
        font-size: clamp(16px, 2vh, 18px); 
        line-height: 1.5; 
        color: #ccc; 
        font-style: italic; 
    }


    .flex-columns { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 30px !important;
        width: 100% !important;
    }
    .big-card { 
        width: 100% !important; 
        flex-direction: column !important;
        min-height: auto !important;
    }
    .big-card .card-image, .big-card .card-text {
        width: 100% !important;
    }

    .rail-grid { 
        display: block !important; 
    }
    .rail-card {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .rail-stats { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        gap: 40px !important;
        padding: 40px 20px !important;
    }
    .stat-item { width: 100% !important; text-align: center !important; }
    .stat-divider { 
        width: 60px !important; 
        height: 2px !important; 
        margin: 10px auto !important; 
    }

    .timeline-line { 
        left: 20px !important; 
        transform: translateX(0) !important; 
        width: 4px;
    }

    .timeline-item::after { 
        content: ''; 
        position: absolute; 
        top: 35px; 
        width: 10px; 
        height: 10px; 
        background: #111; 
        border: 5px solid #b32d2e; 
        border-radius: 50%; 
        z-index: 2; 
    }

    .timeline-item {
        width: 100% !important;
        padding: 20px 0 20px 50px !important;
        text-align: left !important;
        float: none !important;
    }
    .timeline-item.left::after, 
    .timeline-item.right::after { 
        left: 10px !important; 
        right: auto !important; 
        top: 25px !important; 
    }

    .timeline-content { 
    background: #1a1a1a; 
    padding: 10px; 
    border-radius: 10px; 
    border: 1px solid #333; 
}

    .hero {
        min-height: 100vh !important;
        height: 100vh !important;
        padding: 40px 20px !important;
    }
    .big-waltz {
        min-height: 100vh !important;
        height: auto !important; 
        padding: 60px 0 !important;
        background: #000;
    }

    .waltz-description {
        margin-top: 3vh;
    }

    .emotional-accent { 
    font-size: clamp(14px, 2.3vh, 24px) !important; 
    font-weight: bold; 
    color: #fff !important; 
    margin-top: 3vh !important; 
    padding: 1vh; 
    border-top: 2px solid #b32d2e; 
    border-bottom: 2px solid #b32d2e; 
    display: inline-block; 
    background: rgba(0,0,0,0.4);
}

    .waltz-image {
        display: block !important;
        width: 100% !important;
        max-width: 450px !important; 
        height: auto !important;
        border-radius: 10px;
    }
    
    .bubble { 
        max-width: 100% !important; 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    .avatar { 
        display: block !important; 
        width: 50px !important; 
        height: 50px !important; 
        flex-shrink: 0 !important; 
    }
    .stalin-bubble { flex-direction: row !important; }

    .facts-grid {
        grid-template-columns: 1fr !important;
        gap: 3vh !important;
    }

    
    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 3vh !important;
    }

    .commanders-main {
        grid-template-columns: 1fr !important;
        margin: 0 0 2vh;
    }
    .commanders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        margin: 0 0 2vh;
    }

    h1, h2, h3, p {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: normal !important;
        hyphens: auto !important;
    }
}


#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #b32d2e;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

#menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background 0.3s, border-color 0.3s;
}

#menu-toggle:hover {
    background: rgba(179, 45, 46, 0.8);
    border-color: #b32d2e;
}

#menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

#menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.active .bar:nth-child(2) { opacity: 0; }
#menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#toc-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 100%;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid #333;
    overflow-y: auto;
}

#toc-menu.active {
    right: 0;
}

.toc-content {
    padding: 80px 30px 30px;
}

.toc-content h3 {
    color: #b32d2e;
    font-size: 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-content li {
    margin-bottom: 15px;
}

.toc-content a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
    display: block;
    line-height: 1.4;
}

.toc-content a:hover {
    color: #fff;
    padding-left: 10px;
    border-left: 2px solid #b32d2e;
}