/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
    /* Основные цвета*/
    --color1: #E10110;
    --color2: #AD232C;
    --color3: #7A3136;
    --fonColor: #443847;
    --backFonColor: #332929;
    
    /* Новые оттенки для темного дизайна */
    --dark-bg: #1A1515;
    --darker-bg: #120E0E;
    --card-bg: rgba(51, 41, 41, 0.85);
    --card-bg-hover: rgba(68, 56, 71, 0.9);
    --glass-bg: rgba(26, 21, 21, 0.7);
    --glass-border: rgba(225, 1, 16, 0.2);
    
    /* Красные оттенки */
    --red-light: #FF4D4D;
    --red-dark: #8B0000;
    --red-glow: rgba(225, 1, 16, 0.5);
    --red-shadow: rgba(225, 1, 16, 0.3);
    
    /* Серые оттенки */
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Функциональные цвета */
    --success: #4CAF50;
    --warning: #FFC107;
    --error: #F44336;
    --info: #2196F3;
    
    /* Размеры */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-circle: 50%;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-red: 0 4px 12px var(--red-shadow);
    --shadow-glow: 0 0 20px var(--red-glow);
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Шрифты */
    --font-main: 'Arial', sans-serif;
    --font-title: 'Arial Black', sans-serif;
}

/* ========== ОБЩИЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--gray-200);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(225, 1, 16, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(173, 35, 44, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(225, 1, 16, 0.02) 0px, rgba(225, 1, 16, 0.02) 2px, transparent 2px, transparent 10px);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== ХЕДЕР ========== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color1);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    animation: headerSlide 0.5s ease-out;
}

@keyframes headerSlide {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header > div:first-child a {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--color1), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

.header > div:first-child a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color1), transparent);
    animation: headerLine 3s infinite;
}

@keyframes headerLine {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.header > div:last-child {
    display: flex;
    gap: 30px;
}

.header a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

div:last-child a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--border-radius-circle);
    background: var(--red-glow);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.header a:hover {
    color: white;
    text-shadow: 0 0 10px var(--color1);
}

.header a:hover::before {
    width: 200px;
    height: 200px;
}

/* Активная ссылка в хедере */
.header a.active {
    color: var(--color1);
    border-bottom: 2px solid var(--color1);
}

/* ========== ФУТЕР ========== */
.footer {
    background: var(--darker-bg);
    border-top: 3px solid var(--color1);
    padding: 50px 40px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--red-glow) 0%, transparent 70%);
    animation: footerGlow 15s linear infinite;
    opacity: 0.1;
    pointer-events: none;
}

@keyframes footerGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footerItem {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.footerItem:first-child > div {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo2 {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--color1);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-normal);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo2:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--color1);
}

.footerItem:first-child h1 {
    font-size: 36px;
    background: linear-gradient(135deg, var(--color1), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footerItem h2 {
    color: var(--gray-400);
    font-size: 18px;
    font-weight: normal;
    transition: color var(--transition-normal);
}

.footerItem a {
    color: var(--gray-500);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footerItem a::before {
    content: '►';
    color: var(--color1);
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-normal);
}

.footerItem a:hover {
    color: white;
    transform: translateX(20px);
}

.footerItem a:hover::before {
    opacity: 1;
    left: 0;
}

.footerItem:last-child h3 {
    color: var(--gray-600);
    font-size: 16px;
    font-weight: normal;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color3);
    transition: all var(--transition-normal);
}

.footerItem:last-child h3:hover {
    color: var(--gray-300);
    border-bottom-color: var(--color1);
    padding-left: 10px;
}

/* ========== КАРТОЧКИ ========== */
/* Основная карточка */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 1, 16, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--color1);
}

.card:hover::before {
    left: 100%;
}

/* Игровая карточка */
.card-game {
    background: linear-gradient(135deg, var(--card-bg), var(--darker-bg));
    border-left: 4px solid var(--color1);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin: 15px 0;
    transition: all var(--transition-normal);
    animation: cardAppear 0.5s ease-out;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-game:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-red);
}

.card-game-title {
    color: var(--color1);
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--red-glow);
}

.card-game-stats {
    display: flex;
    gap: 20px;
    color: var(--gray-400);
    font-size: 14px;
}

/* Карточка профиля */
.card-profile {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    padding: 30px;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), 
                      linear-gradient(135deg, var(--color1), var(--color3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all var(--transition-normal);
}

.card-profile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Карточка сервера */
.server-list{
    display: flex;
    padding: 15px;
    flex-wrap: wrap;
    justify-content: left;
}

.card-server {
    background: var(--darker-bg);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin: 15px;
    border: 1px solid var(--color3);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.card-server:hover {
    border-color: var(--color1);
    box-shadow: 0 0 30px var(--red-glow);
}

.card-server.online {
    border-left: 4px solid var(--success);
    animation: pulseOnline 2s infinite;
}

@keyframes pulseOnline {
    0%, 100% { border-left-color: var(--success); }
    50% { border-left-color: #87D37C; }
}

.card-server.offline {
    border-left: 4px solid var(--error);
    opacity: 0.7;
}

/* ========== КНОПКИ И ССЫЛКИ ========== */
/* Основная кнопка */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(225, 1, 16, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--red-glow);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* Кнопка-ссылка */
.btn-link {
    color: var(--color1);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: all var(--transition-normal);
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color1), var(--red-light));
    transition: width var(--transition-normal);
}

.btn-link:hover {
    color: white;
    text-shadow: 0 0 10px var(--color1);
}

.btn-link:hover::after {
    width: 100%;
}

/* Социальные ссылки */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--glass-bg);
    color: var(--color1);
    transform: translateX(5px);
}

/* ========== РАЗДЕЛЫ ========== */
.section {
    padding: 60px 40px;
    position: relative;
}

.section-title {
    font-size: 36px;
    color: white;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color1);
    box-shadow: 0 0 20px var(--color1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 70px;
    width: 30px;
    height: 3px;
    background: var(--color2);
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Раздел с градиентом */
.section-gradient {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    border-top: 1px solid var(--color3);
    border-bottom: 1px solid var(--color3);
}

/* Раздел с параллаксом */
.section-parallax {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('img/pattern.png') repeat fixed;
    background-blend-mode: overlay;
}


/* Информационные блоки */
.info-block {
    background: var(--glass-bg);
    border-left: 4px solid var(--color1);
    border-radius: var(--border-radius-md);
    padding: 25px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, var(--red-glow) 50%);
    opacity: 0.1;
}

.info-block.warning {
    border-left-color: var(--warning);
}

.info-block.warning::before {
    background: linear-gradient(135deg, transparent 50%, rgba(255, 193, 7, 0.1) 50%);
}

.info-block.success {
    border-left-color: var(--success);
}

.info-block.success::before {
    background: linear-gradient(135deg, transparent 50%, rgba(76, 175, 80, 0.1) 50%);
}

.info-block h4 {
    color: var(--color1);
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-block.warning h4 {
    color: var(--warning);
}

.info-block.success h4 {
    color: var(--success);
}

/* ========== СПИСКИ ========== */
.list {
    list-style: none;
    padding: 0;
}

.list-item {
    padding: 12px 20px;
    margin: 8px 0;
    background: var(--glass-bg);
    border-left: 3px solid var(--color3);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.list-item:hover {
    border-left-color: var(--color1);
    background: var(--card-bg);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.list-item.active {
    border-left-color: var(--color1);
    background: linear-gradient(90deg, var(--red-glow), transparent);
}

/* Нумерованный список */
.list-numbered {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

.list-numbered li {
    counter-increment: item;
    margin: 10px 0;
    padding: 10px 0 10px 40px;
    position: relative;
}

.list-numbered li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--color1);
    color: white;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px var(--color1);
}

.div-list {
	display: flex;
}

.padding-10{
	padding: 10px;
}

.padding-20{
	padding: 20px;
}

.padding-30{
	padding: 30px;
}

.padding-40{
	padding: 40px;
}

.div-list-item{
	padding: 20px;
	margin: 20px;
	flex: 1;
}

form input{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    height: 46px;
    width: 70%;
}

/* ========== ТАБЛИЦЫ ========== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--glass-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table th {
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: white;
    padding: 15px;
    font-weight: bold;
    text-align: left;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--gray-300);
}

.table tr {
    transition: all var(--transition-normal);
}

.table tr:hover {
    background: var(--card-bg);
}

.table-striped tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.2);
}



/* ========== АНИМАЦИИ ========== */
/* Анимация загрузки */
.loading {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color3);
    border-top-color: var(--color1);
    border-radius: var(--border-radius-circle);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Пульсирующая точка */
.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--color1);
    border-radius: var(--border-radius-circle);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-circle);
    background: var(--red-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Свечение */
.glow {
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
    50% { box-shadow: 0 0 40px var(--color1); }
}

/* Появление элементов */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== УТИЛИТЫ ========== */
.text-gradient {
    background: linear-gradient(135deg, var(--color1), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 10px var(--color1), 0 0 20px var(--red-glow);
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.border-glow {
    border: 1px solid var(--color1);
    box-shadow: 0 0 15px var(--color1);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ========== Панели поверх всего ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-consent p {
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.error {
    color: red;
    background-color: #ffe6e6;
    border: 1px solid red;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* ========== МЕДИА-ЗАПРОСЫ ========== */
@media (max-width: 1024px) {
    .footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }
    
    .header > div:last-child {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .card-game-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
	
	.cookie-consent {
                flex-direction: column;
                text-align: center;
            }
}