
:root {
    /* Цветовая палитра (Dark Mode / Gaming Theme) */
    --color-bg-body: #0f172a;
    --color-bg-surface: #1e293b;
    --color-bg-card: #334155;
    
    --color-primary: #6366f1; /* Indigo */
    --color-primary-hover: #4f46e5;
    --color-accent: #06b6d4; /* Cyan */
    --color-accent-hover: #0891b2;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #475569;

    /* Типографика */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --line-height-base: 1.6;
    --font-size-base: 1rem;
    
    /* Отступы и размеры */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 75rem; /* ~1200px */
    --header-height: 5rem;
    
    /* Эффекты */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.4);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--color-text-main) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 0.25rem solid var(--color-accent);
    padding-left: 1rem;
    margin-top: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--color-accent);
    margin-top: var(--spacing-sm);
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-accent-hover);
}

/* --- Layout Wrappers --- */
/* Оборачиваем прямых потомков body в контейнер, так как в HTML они идут подряд */
body > section,
body > h2,
body > h3,
body > p,
body > ul,
body > ol,
body > figure,
body > div:not(header div) {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

/* --- Header --- */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    padding: 0 var(--spacing-sm);
    height: auto;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}

header div img {
    height: 3rem;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
    transition: var(--transition-base);
}

header div img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

header ul.menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

header ul.menu li a {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

header ul.menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

header ul.menu li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

header ul.menu li a:hover,
header ul.menu li.current-menu-item a {
    color: var(--color-primary);
    background-color: rgba(99, 102, 241, 0.1);
}

/* --- Intro Section --- */
.intro {
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: fadeIn 1s ease-out;
}

.intro p {
    max-width: 40rem;
    margin: 0 auto 2rem auto;
    font-size: 1.25rem;
}

.intro a[href*="go.php"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-glow);
    transform: translateY(0);
    transition: var(--transition-base);
}

.intro a[href*="go.php"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

.intro a[href*="go.php"]:active {
    transform: translateY(1px);
}

/* --- Content & Lists --- */
.content {
    margin-top: var(--spacing-md);
}

ul:not(.menu), ol:not(.menu) {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

ul:not(.menu) li {
    list-style: none;
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

ul:not(.menu) li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.9em;
}

ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    color: var(--color-text-muted);
}

strong {
    color: var(--color-text-main);
    font-weight: 600;
}

/* --- Tables --- */
.wp-block-table {
    margin: 2rem auto;
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-bg-surface);
    text-align: left;
}

table td, table th {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-text-main);
}

/* --- Footer --- */
footer {
    background-color: #0b1120;
    margin-top: auto;
    padding: var(--spacing-lg) var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

footer ul.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 2rem;
    margin: 0 auto;
    padding: 0;
    max-width: var(--container-width);
}

footer ul.menu li a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

footer ul.menu li a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Forms (Generic styles if needed later) --- */
input, textarea, select {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-base);
    width: 100%;
}

input:focus, textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    header div {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    header ul.menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }

    header ul.menu li a {
        padding: 0.5rem;
        font-size: 0.85rem;
        background-color: rgba(255,255,255,0.05);
    }

    h1 {
        font-size: 2rem;
    }

    .intro a[href*="go.php"] {
        width: 100%;
        max-width: 300px;
    }

    footer ul.menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
