* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

@font-face {
    font-family: 'Trajan Pro';
    src: url('https://fonts.cdnfonts.com/css/trajan-pro') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('img/bg/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE and Edge */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(20, 10, 40, 0.7) 100%);
    z-index: -1;
}

/* Эффект частиц */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-item img {
    width: 32px;
    height: auto;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lang-item:hover img {
    border-color: #D4AF37;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

.lang-item.active img {
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

header {
    padding: 30px 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: rgba(20, 10, 40, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #990000, transparent);
}

h1 {
    font-family: 'Trajan Pro', serif;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(153, 0, 0, 0.5);
    font-weight: bold;
    color: #D4AF37;
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

h1::before, h1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: #990000;
    top: 50%;
}

h1::before {
    left: -80px;
}

h1::after {
    right: -80px;
}

.main-nav {
    width: 100%;
    padding: 0 20px;
    margin-top: 20px;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 10px;
    flex-wrap: nowrap;
}

.main-nav li {
    position: relative;
    flex: 0 0 auto;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    display: block;
    background-color: rgba(30, 15, 60, 0.7);
    border-radius: 4px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.5s ease;
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(153, 0, 0, 0.8);
    border-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

.content {
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.8) 0%, rgba(60, 20, 40, 0.8) 100%);
    padding: 30px;
    border-radius: 12px;
    width: 40%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(153, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
}

.content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #D4AF37, #990000, #D4AF37, #990000);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 14px;
    opacity: 0.5;
    animation: borderGradient 6s ease infinite;
}

@keyframes borderGradient {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

h2 {
    font-family: 'Trajan Pro', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, transparent, #990000, transparent);
    margin: 10px auto 0;
}

h3 {
    font-family: 'Trajan Pro', serif;
    font-size: 1.6rem;
    margin: 25px 0 15px;
    color: #f0f0f0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

h4 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    color: #D4AF37;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #f0f0f0;
}

a {
    color: #D4AF37;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFC107;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.btn {
    display: inline-block;
    background: linear-gradient(to bottom, #aa0000, #990000);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(153, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover {
    background: linear-gradient(to bottom, #cc0000, #aa0000);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(153, 0, 0, 0.4);
    color: #fff;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(153, 0, 0, 0.4);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(20, 10, 40, 0.8);
    margin-top: auto;
    border-top: 1px solid rgba(153, 0, 0, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #990000, transparent);
}

/* Языковые настройки */
.eng {
    display: none;
}

body.english .eng {
    display: block;
}

body.english .ru {
    display: none;
}

/* Стили для страницы "О сервере" */
.about-section {
    margin-bottom: 30px;
    text-align: left;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.5) 0%, rgba(60, 20, 40, 0.5) 100%);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-list, .tech-specs {
    list-style-position: inside;
    margin: 15px 0;
    padding-left: 20px;
}

.feature-list li, .tech-specs li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.feature-list li::before, .tech-specs li::before {
    content: '✦';
    color: #990000;
    position: absolute;
    left: -15px;
    font-size: 14px;
}

/* Стили для страницы "Скачать" */
.download-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.download-option {
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.6) 0%, rgba(60, 20, 40, 0.6) 100%);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(153, 0, 0, 0.3);
    flex: 1 1 calc(33.33% - 30px);
    min-width: 300px;
    max-width: 500px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.download-option::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.3), rgba(153, 0, 0, 0.3));
    z-index: -1;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.5);
}

.download-option:hover::before {
    opacity: 1;
}

.patch-list {
    text-align: left;
    list-style-type: none;
    margin: 15px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.patch-list li {
    margin-bottom: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.6) 0%, rgba(60, 20, 40, 0.6) 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(153, 0, 0, 0.5);
}

.patch-list li:hover {
    background: linear-gradient(135deg, rgba(40, 20, 80, 0.7) 0%, rgba(80, 30, 50, 0.7) 100%);
    transform: translateX(5px);
    border-left-color: #990000;
}

.patch-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.patch-list a:hover {
    color: #D4AF37;
}

.sys-req {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.min-req, .rec-req {
    flex: 1 1 calc(33.33% - 30px);
    min-width: 300px;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.6) 0%, rgba(60, 20, 40, 0.6) 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.min-req:hover, .rec-req:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.min-req h4, .rec-req h4 {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.min-req ul, .rec-req ul {
    list-style-position: inside;
    margin-top: 10px;
}

.min-req li, .rec-req li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.min-req li::before, .rec-req li::before {
    content: '➤';
    color: #990000;
    position: absolute;
    left: -15px;
    font-size: 12px;
}

/* Стили для страницы "Контакты" */
.contact-section {
    margin-bottom: 30px;
    text-align: left;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.5) 0%, rgba(60, 20, 40, 0.5) 100%);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.3);
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
    justify-content: center;
}

.contact-method {
    flex: 1 1 calc(33.33% - 30px);
    min-width: 250px;
    max-width: 350px;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.6) 0%, rgba(60, 20, 40, 0.6) 100%);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.3), rgba(153, 0, 0, 0.3));
    z-index: -1;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-method:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.contact-method:hover::before {
    opacity: 1;
}

.contact-method h4 {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.support-info {
    list-style-type: none;
    margin: 15px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.support-info li {
    margin-bottom: 12px;
    padding: 8px;
    background-color: rgba(30, 15, 60, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.support-info li:hover {
    background-color: rgba(60, 20, 40, 0.5);
    transform: translateX(5px);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: linear-gradient(135deg, rgba(30, 15, 60, 0.6) 0%, rgba(60, 20, 40, 0.6) 100%);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(153, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #D4AF37;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #990000;
    outline: none;
    box-shadow: 0 0 8px rgba(153, 0, 0, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.button-wrapper {
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.button-wrapper::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(153, 0, 0, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .download-option, .min-req, .rec-req, .contact-method {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h1::before, h1::after {
        display: none;
    }
    
    .main-nav {
        padding: 0 10px;
    }
    
    .main-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .main-nav a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .content {
        width: 95%;
        padding: 20px 15px;
    }
    
    .download-option, .min-req, .rec-req, .contact-method {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-item img {
        width: 24px;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
} 