:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #10131a;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff8c00;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #ff8c00;
}

.account-btn {
    background: #23272f;
	text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
	border: 1px solid #ff8c00;
    color: #fff;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    width: 30px;
    height: 20px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.lang-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

/* Анимация при наведении и активации */
.lang-btn:hover .flag-icon {
    filter: brightness(1.1);
}

/* Эффект выбранного языка */
.lang-btn.active .flag-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 163, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(79, 163, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 163, 255, 0);
    }
}

/* Анимация при переключении языка */
.language-switch-animation {
    animation: rotateFlag 0.5s ease-in-out;
}

@keyframes rotateFlag {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(16,19,26,0.3), rgba(16,19,26,0.3)), url('../img/bg/image.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero h1, .hero p {
    color: #fff;
	
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
	color: #fff;
    border: 1px solid #ff8c00;
}

.btn.primary {
    background: #23272f;
    color: #fff;
    border: 1px solid #ff8c00;
    box-shadow: 0 2px 8px rgba(79,163,255,0.15);
}

.btn.primary:hover {
    background: #23272f;
	color: #fff;
    border: 1px solid #ff8c00;
}

.btn.secondary {
    background: #23272f;
    color: #fff;
    border: 1px solid #ff8c00;
}

/* Features Section */
.features, .additional-features {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #181c22;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
    color: #fff;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #4fa3ff;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #181c22;
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #b8c6e4;
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4fa3ff;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* About Section */
.about {
    background: var(--background-color);
}

.about h2, .download h2, .register h2, .contacts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.server-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.info-card {
    min-width: 300px;
    max-width: 320px;
    flex: 0 0 300px;
    background: #181c22;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    color: #fff;
    margin-bottom: 0;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

/* Download Section */
.download {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../img/bg/image.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
}

.download-options {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.download-card {
    min-width: 300px;
    max-width: 320px;
    flex: 0 0 300px;
    background: #181c22;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    color: #fff;
    margin-bottom: 0;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card i {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

.download-card h3 {
    margin-bottom: 1rem;
}

.download-card p {
    margin-bottom: 2rem;
    color: #888;
}

/* Register Section */
.register {
    background: var(--background-color);
}

.register-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-form input {
    padding: 1rem;
    border: 1px solid #ff8c00;
    border-radius: 5px;
    background: #23272f;
    color: #fff;
}

.register-form input::placeholder {
    color: #b8c6e4;
}

.register-form button {
    margin-top: 1rem;
}

/* Contacts Section */
.contacts {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../img/bg/image.png');
    background-size: cover;
    background-attachment: fixed;
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.contact-card {
    min-width: 300px;
    max-width: 320px;
    flex: 0 0 300px;
    background: #181c22;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    color: #fff;
    margin-bottom: 0;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--text-color);
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* .nav-links скрывается через inline стили в HTML файлах для мобильного меню */
    /* Удалено display: none - теперь управление через класс .active */
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features, .additional-features {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 3rem 1rem;
    }
    
    .about h2, .download h2, .register h2, .contacts h2 {
        font-size: 2rem;
    }
    
    .register-form {
        padding: 0 1rem;
    }
}

@media (max-width: 900px) {
    .info-card {
        margin-bottom: 2rem;
    }
}

/* Page Section */
.page-section {
    padding-top: 100px; /* Отступ для фиксированного меню */
    padding-bottom: 60px;
    background: var(--background-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../img/bg/image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.page-section .container {
    position: relative;
    z-index: 2;
}

.page-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Page */
.about.page-section {
    background: none;
}

/* Download Page */
.download.page-section {
    background: none;
}

/* Register Page */
.register.page-section {
    background: none;
}

/* Contacts Page */
.contacts.page-section {
    background: none;
}

/* Active Navigation Link */
.nav-links a.active{
    color: #ffa500 !important; /* Оранжевый цвет текста */
    position: relative;
}
.nav-buttons .account-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* News Section */
.news-section {
    padding: 40px 0 60px;
    background: #181c22;
    flex: 1 0 auto;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    color: #fff;
}

.news-date {
    color: #4fa3ff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.news-excerpt {
    color: #888;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.news-item {
    background: #23272f;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-start;
}

.news-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.news-section .news-content {
    padding: 16px;
    color: #fff;
}

.news-section h2 {
    margin-bottom: 24px;
    color: #e0e6ed;
}

/* Admin Panel Styles */
.admin-section {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.admin-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #4fa3ff;
    border-radius: 5px;
    background: #23272f;
    color: #fff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.about-hero, .download-hero, .contacts-hero, .register-hero {
    background: linear-gradient(rgba(16,19,26,0.3), rgba(16,19,26,0.3)), url('../img/bg/image.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.about-hero .server-info,
.download-hero .download-options,
.contacts-hero .contact-info {
    margin-top: 40px;
}

.register-hero .register-form {
    margin-top: 40px;
    width: 100%;
    max-width: 400px;
    background: rgba(35, 39, 47, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Стили для рекламы */
.header-banner {
    background: linear-gradient(90deg, #ff6b00, #ffa502);
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
}

.header-banner a {
    color: #fff;
    text-decoration: none;
}

.header-banner span {
    background: #d35400;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.content-ad {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.content-ad a {
    color: #ffa502;
    font-weight: bold;
}

.partner-link {
    color: #ffa502 !important;
    font-weight: bold;
}

/* Стили для рекламного попапа */
.ad-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e2d;
    border: 2px solid #ffa502;
    border-radius: 10px;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 0 25px rgba(255, 165, 2, 0.5);
}

.ad-content {
    text-align: center;
}

.ad-content img {
    max-width: 300px;
    margin: 15px 0;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}
/* Стили для таймера запуска сервера */
.server-launch {
    margin-top: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #ffa502;
}

.server-launch h3 {
    color: #ffa502;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 165, 2, 0.8);
}

.countdown-item div {
    font-size: 1rem;
    color: #ffa502;
    text-transform: uppercase;
}
/* Личный кабинет */
.account-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-card, .payment-form {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.payment-options img {
    height: 40px;
    border: 2px solid transparent;
    border-radius: 5px;
}

.payment-options input[type="radio"]:checked + img {
    border-color: #FFC107;
} 