
/* =========================================
   1. CSS Reset & Base Variables
   ========================================= */
:root {
    /* Цветовая палитра (на основе бренда MostBet) */
    --color-primary: #0f5b9e;
    --color-primary-dark: #0a457a;
    --color-secondary: #ff5722;
    --color-secondary-hover: #e64a19;
    --color-bg-body: #f4f6f8;
    --color-bg-card: #ffffff;
    --color-text-main: #2c3e50;
    --color-text-muted: #6c757d;
    --color-border: #e0e6ed;
    --color-success: #28a745;
    
    /* Типографика */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.5rem, 2.5vw, 2rem);
    
    /* Отступы и Размеры */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem; /* radius20 */
    --container-width: 1200px;
    
    /* Эффекты */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* =========================================
   2. Layout & Utility Classes
   ========================================= */
.wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.flx {
    display: flex;
}

.jcsb {
    justify-content: space-between;
}

.aic {
    align-items: center;
}

.fxg {
    flex-grow: 1;
}

/* Margin helpers inferred from HTML classes */
.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.r20 { margin-right: 1.25rem; }

/* Font styling helpers */
.f12 { font-size: 0.75rem; }
.w500 { font-weight: 500; }

/* Radius utility */
.radius20 { border-radius: var(--radius-lg); }
.h30 { height: 1.875rem; line-height: 1.875rem; }

/* Grid Layout for Content */
.content-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: start;
}

/* =========================================
   3. Header Styling
   ========================================= */
header {
    background: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.head-top {
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

/* Download & Lang Switcher Section */
.download {
    background-color: #eef2f6;
    padding: 0 var(--spacing-md);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    gap: var(--spacing-sm);
    font-weight: 600;
}

.btn-icon svg {
    transition: transform var(--transition-fast);
}

.btn-icon:hover svg {
    transform: translateY(-2px);
}

.drop {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 0 var(--spacing-sm);
    border-radius: var(--radius-lg);
    background: #eef2f6;
    transition: background var(--transition-fast);
}

.drop:hover {
    background: #dde4eb;
}

/* Logo */
.logo svg {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo:hover svg {
    transform: scale(1.05);
}

/* Main Menu (Navigation) */
.head-bottom {
    padding-top: var(--spacing-sm);
    align-items: center;
    gap: var(--spacing-lg);
}

.main-menu ul {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.main-menu a {
    font-weight: 600;
    font-size: var(--fs-sm);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

.main-menu a:hover::after {
    width: 80%;
}

.main-menu a:hover {
    color: var(--color-primary);
}

/* =========================================
   4. Buttons & Interactive Elements
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

/* Color Classes applied to buttons/backgrounds */
.fon-blu {
    background-color: #eef2f6;
    color: var(--color-primary);
}

.fon-blu2 {
    background: linear-gradient(135deg, var(--color-primary) 0%, #004080 100%);
    color: white;
}

.fon-orang {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #d84315 100%);
    color: white;
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.fon-blu:hover {
    background-color: #dbe4ef;
}

.shadow-white {
    box-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.shadow-dark {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =========================================
   5. Sidebar Navigation
   ========================================= */
.col-left {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 5rem;
}

.menu-category ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-category a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--color-text-main);
    transition: all var(--transition-fast);
}

.menu-category a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--color-text-muted); /* Fallback */
    transition: transform var(--transition-fast);
}

/* Nested lists indentation */
.menu-category ul ul {
    margin-top: 0.25rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-border);
}

/* Hover states */
.menu-category li > a:hover {
    background-color: #f0f7ff;
    color: var(--color-primary);
    padding-left: 1.25rem; /* Micro-animation slide */
}

.menu-category li > a:hover svg {
    transform: scale(1.1);
}

/* Specific SVG colors preserved from HTML logic, styling wrapper for visual consistency */
.menu-category a svg path {
    /* Colors usually inline in HTML, but we allow hover override if needed */
}

/* =========================================
   6. Main Content Area
   ========================================= */
.box.text {
    background: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Headings */
h1, h2, h3 {
    color: var(--color-text-main);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 {
    font-size: var(--fs-xl);
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 1rem;
    color: #4a5568;
    text-align: justify;
}

/* CTA Link */
.refka {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.refka a {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--fs-lg);
    box-shadow: 0 4px 15px rgba(15, 91, 158, 0.4);
    transition: all var(--transition-smooth);
}

.refka a:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 91, 158, 0.5);
}

/* Content Lists */
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.entry-content ul li::before {
    content: '•';
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: -0.5rem;
    font-size: 1.2em;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: var(--fs-sm);
}

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

th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

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

tr:hover td {
    background-color: #fcfdfe;
}

/* =========================================
   7. Form Elements (Generic styles if implied)
   ========================================= */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    transition: border-color var(--transition-fast);
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 91, 158, 0.1);
}

/* =========================================
   8. Responsive Design
   ========================================= */

/* Tablet & Mobile */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }

    .content-row {
        grid-template-columns: 1fr;
    }

    .col-left {
        display: none; /* Often sidebars are hidden behind a hamburger on mobile, hiding for simplicity based on HTML provided */
    }
    
    /* Make content full width */
    .content-row {
        display: block;
    }
    
    .head-top .flx.jcsb {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        margin: 0 auto;
    }
}

/* Mobile only */
@media (max-width: 768px) {
    :root {
        --fs-xl: 1.5rem;
    }

    .box.text {
        padding: var(--spacing-md);
    }
    
    .head-top {
        flex-direction: column;
    }
    
    .head-top > div {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        width: 100%; /* Full width buttons on mobile */
    }
    
    .table-responsive {
        box-shadow: none;
        border: 1px solid var(--color-border);
    }
    
    th, td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

/* =========================================
   9. Scrollbar Styling
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}
