html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
     background-color: #100d0d;
     color: #e0e0e0;
     font-family: sans-serif;
     font-size: 18px;
     line-height: 1.6;
}
header {
    text-align: center;
    padding: 130px 20px 130px;
    border-bottom: 3px solid #2a2a2a;
    background-image: 
        linear-gradient(to bottom, rgba(18, 18, 18, 0.4), rgba(18, 18, 18, 1)),
        url('bg.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}
header h1 {
    font-size: 3.5rem;
    letter-spacing: 0px;
    color: #ffffff;
    margin-bottom: 30px;
}
header .subtitle {
    font-size: 1.5rem;
    color: #ffffffbf;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}
header .author {
    font-size: 1.3rem;
    color: #c3bebe;
    font-style: italic;
}




.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #100707de;
    border-right: 2px solid #b33532;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar h2 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 3px solid #b33532;
    padding-bottom: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 30px;
}

.sidebar a {
    color: #d49227;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.sidebar a:hover {
    color: #b33532;
}

.toggle-btn {
    position: absolute;
    top: 20px;
    right: -35px;
    width: 35px;
    height: 40px;
    background-color: #1a1a1a;
    border: 2px solid #b33532;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: transform 0.3s ease;
}

.sidebar.active .toggle-btn {
    transform: rotate(180deg);
}





.top-lang-switch {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(18, 18, 18, 0.85);
    border: 1px solid #2a2a2a;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.top-lang-switch .lang-btn {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s;
}

.top-lang-switch .lang-btn:hover {
    color: #ffffff;
}

.top-lang-switch .lang-btn.active {
    color: #b33532;
    pointer-events: none;
}

.top-lang-switch .lang-divider {
    color: #444444;
}




.faction-card {
    width: 85%;
    max-width: 1200px;
    margin: 40px auto;
    font-family: sans-serif;
    color: #feeaea;
    line-height: 1.6;
    padding: 0 15px;
}

.faction-card h2 {
    color: #af8552;
    font-size: 2.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.faction-card .ideology {
    color: #ffffff;
    font-weight: bold;
    font-style: italic;
    border-left: 3px solid #b33532;
    padding-left: 10px;
    margin-bottom: 20px;
}
.stats-box {
    margin: 30px 0;
    padding: 20px 24px;
    background-color: #161313;
    border: 3px solid #2a2a2a;
    border-left: 4px solid #b33532;
    border-radius: 6px;
}

.stat-card h3 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}
.stat-card + .stat-card {
    margin-top: 20px;
}

.reason {
    border-left: 3px solid #b33532;
    padding: 15px 18px;
    margin-top: 30px;
    background-color: rgba(179, 53, 50, 0.05);
    border-radius: 0 8px 8px 0;
}

.reason h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .stats-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-card + .stat-card {
        margin-top: 0;
    }
}




.site-footer {
    background-color: #100b0b;
    border-top: 2px solid #8f0505;
    padding: 30px 20px;
    margin-top: 60px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.7);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-credits {
    color: #a0a0a0;
    font-size: 15px;
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-credits span {
    color: #e53935; /* Выделение слова Метро акцентным красным */
    font-weight: bold;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #8b0000;
    border-color: #e53935;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(229, 57, 53, 0.4);
    transform: translateY(-3px);
}

.back-to-top .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.back-to-top:hover .arrow {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}




.gid-prof {
    display: inline-flex;
    align-items: center;
    color: #feeaea;
    text-decoration: none;
    font-size: 18px;
    padding: 6px 12px;
    background: rgba(0, 102, 255, 0.837);
    border: 2px solid rgba(255, 0, 0, 0.277);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gid-prof:hover {
    color: #ffffff;
    background: #8b0000;
    border-color: #e53935;
    transform: translateY(-3px);
}