body {
    background-color: #1c1c1c;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

.wiki-wrapper {
    max-width: 1400px;
    margin: auto;
}

.wiki-header {
    background-color: #8b0000;
    color: #ffffff;
    padding: 40px 20px;
    font-family: sans-serif;
    font-size: 15px;
    border-top: 1px solid #333;
    line-height: 1.6;
    width: auto;
    height: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.nation-section {
    background-color: #262626;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.nation-title {
    padding: 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.ussr { background-color: #8b0000; }

.branch-container h3 {
    border-left: 4px solid #ffd700;
    padding-left: 15px;
    margin-top: 25px;
    border-right: 4px solid #ffd700;
    padding-right: 15px;
    word-spacing: 940px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
    overflow-x:auto;
}

.v-card {
    background-color: #333;
    border: 1px solid #444;
    padding: 15px 10px;
    text-align: center;
    font-size: 0.9em;
    border-radius: 4px;
    transition: transform 0.2s, background-color 0.2s;
    cursor:pointer;
    width: 130px;
    height: 80px;
}

.baza { border-bottom: 3px solid #979797; }
.prem { border-bottom: 3px solid #d1b200; }
.polk { border-bottom: 3px solid #67b600; }
.action { border-bottom: 3px solid blue; }

.v-card:hover {
    border-color: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    gap: 15px;
}
.v-name {
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 5px;
}
.rank-label {
    text-align: center;
    font-weight: bold;
    color: #888;
    padding-bottom: 10px;
    border-bottom: 2px solid #444;
    margin-bottom: 10px;
}
.image-placeholder {
    width: 100%;
    max-width: 550px;
    height: 350px;
    background-color: #1c1c1c;
    border: 2px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
    flex-shrink: 0;
}

#main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: flex;
}
a:link {
    color: rgb(251, 255, 0);
}

a:visited {
    color: rgb(0, 247, 255);
}

a:hover {
    color: red;
}

a:active {
    color: orange;
}
.text-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    width: 90%;
    max-width: 1400px;
    height: auto;
    background-color:#2c2c2c;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 25px;
}

.text-content h1 {
    width: 100%;
    margin-top: 0;
    margin-bottom: 15px;
    order: -1;
    font-size: 2em;
}

.specifications {
    flex: 1;
    margin-top: 0;
    min-width: 300px;
    font-size: 1.1em;
}

.image-placeholder {
    order: 1;
    max-width: 550px;
}

.text-content h3 {
    width: 100%;
    margin: 15px 0 10px 0;
    font-size: 1.3em;
}

.guide {
    display: flex;
    gap: 20px;
    max-width: 700px;
    margin-top: 15px;
    font-size: 1.1em;
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.upper {
    text-align: center;
    background-color:#8b0000;
    height: 60px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upper h1 {
    margin: 0;
    font-size: 1.8em;
}

.wt-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 40px 20px;
    font-family: sans-serif;
    font-size: 13px;
    border-top: 1px solid #333;
    line-height: 1.6;
}

.wt-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.wt-footer-links {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    gap: 20px;
}

.wt-footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.wt-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.wt-footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.wt-logos img {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.wt-logos img:hover {
    opacity: 1;
}

.wt-disclaimer {
    max-width: 800px;
}

.wt-disclaimer p {
    margin: 0 0 10px 0;
}

@media (max-width: 1200px) {
    .text-content {
        width: 95%;
    }
    .image-placeholder {
        max-width: 450px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .text-content {
        flex-direction: column;
    }
    .image-placeholder {
        max-width: 100%;
        height: 300px;
        order: 2;
    }
    .specifications {
        order: 1;
    }
    .wt-footer-bottom {
        flex-direction: column;
    }
    .wt-footer-links {
        flex-wrap: wrap;
    }
}
.project-info{
    width: 800px;
    height: 200px;
    background-color: #2c2c2c;
    text-align: center;
    font-size: 20px;
    display: grid;
    place-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}
.wt-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 30px 20px;
    font-family: sans-serif;
    font-size: 13px;
    border-top: 1px solid #333;
    line-height: 1.6;
    width: 100%;
}

.wt-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.wt-footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.wt-footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.wt-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.wt-logos {
    margin-bottom: 25px;
}

.wt-logos img {
    opacity: 0.7;
    transition: opacity 0.3s;
    max-width: 180px;
    height: auto;
}

.wt-logos img:hover {
    opacity: 1;
}

.wt-disclaimer {
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.wt-disclaimer p {
    margin: 5px 0;
    text-align: center;
    color: #999;
}

.wt-game {
    text-align: center;
    margin-top: 10px;
}

.wt-game p {
    color: #666;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}