
:root {
    /* Цветовая палитра */
    --color-primary: #1e2833;
    --color-secondary: #2c3e50;
    --color-accent: #ff4d00;
    --color-accent-hover: #e04400;
    --color-blue: #428cdc;
    --color-blue-dark: #0052b4;
    --color-text-main: #2a2d30;
    --color-text-light: #7f8b96;
    --color-white: #ffffff;
    --color-bg-body: #f0f2f5;
    --color-bg-card: #ffffff;
    --color-border: #e6e8eb;
    
    /* Градиенты */
    --gradient-orange: linear-gradient(135deg, #fb4d00 0%, #ff8c00 100%);
    --gradient-blue: linear-gradient(135deg, #428cdc 0%, #0052b4 100%);
    
    /* Тени */
    --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);
    --shadow-glow: 0 0 15px rgba(66, 140, 220, 0.3);

    /* Типографика и размеры */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-pill: 50px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s ease-in-out;
}

/* Сброс стилей */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    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, ol {
    list-style: none;
}

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

/* Layout */
.page_inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
header {
    background-color: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.head-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.head-bottom {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Buttons & Utilities */
.flx { display: flex; align-items: center; gap: 0.5rem; }
.jcsb { justify-content: space-between; }
.aic { align-items: center; }
.fxg { flex-grow: 1; }

.download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f5f7fa;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--color-blue);
    transform: translateY(-2px);
}

.btn-icon:hover svg path {
    fill: var(--color-white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

/* Utility Classes from HTML */
.fon-blu {
    background-color: rgba(66, 140, 220, 0.1);
    color: var(--color-blue);
}
.fon-blu:hover {
    background-color: var(--color-blue);
    color: white;
}
.fon-blu:hover svg path {
    fill: white;
}

.fon-blu2 {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(66, 140, 220, 0.4);
}
.fon-blu2:hover {
    box-shadow: 0 6px 15px rgba(66, 140, 220, 0.6);
    transform: translateY(-2px);
}

.fon-orang {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 77, 0, 0.4);
}
.fon-orang:hover {
    box-shadow: 0 6px 15px rgba(255, 77, 0, 0.6);
    transform: translateY(-2px);
}

.h30 { height: 30px; }
.radius20 { border-radius: 20px; }
.shadow-dark { box-shadow: var(--shadow-md); }

/* Logo */
.logo a svg {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.logo path {
    fill: var(--color-primary); /* Override white fill for light theme */
}
.logo circle {
    fill: var(--color-accent);
}

/* Main Menu */
.main-menu ul {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
}

.main-menu a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 5px;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

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

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

/* Content Layout */
.content-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

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

.menu-category > ul > li {
    margin-bottom: 0.5rem;
}

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

.menu-category a:hover {
    background-color: #f0f7ff;
    color: var(--color-blue);
    padding-left: 1rem;
}

.menu-category ul ul {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.menu-category svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

/* Main Content Area */
.content {
    min-width: 0; /* Fix for grid overflow */
}

.box.text {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

/* Typography in Content */
h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.refka {
    text-align: center;
    margin-bottom: 2rem;
}

.refka a {
    display: inline-block;
    background: var(--gradient-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
    transition: var(--transition-smooth);
}

.refka a:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(255, 77, 0, 0.4);
}

.entry-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.entry-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--color-secondary);
    border-left: 4px solid var(--color-accent);
    padding-left: 1rem;
}

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

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

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.entry-content nav ol {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.entry-content nav li {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.entry-content nav a {
    color: var(--color-blue);
    border-bottom: 1px dashed transparent;
}

.entry-content nav a:hover {
    border-bottom-color: var(--color-blue);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    font-size: 0.95rem;
}

table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

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

table tr td:first-child {
    font-weight: 600;
    color: var(--color-secondary);
    background-color: #fbfbfc;
    width: 35%;
}

table tr:hover td {
    background-color: #f0f7ff;
}

/* Forms (Custom Styling for simulated interactions) */
.drop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

.drop:hover {
    color: var(--color-blue);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }

    .head-top {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .page_inner {
        padding-top: 0;
    }

    header {
        padding: 0.5rem 0;
    }

    .wrap {
        padding: 0 0.75rem;
    }

    .head-top, .head-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .head-top .flx {
        justify-content: center;
    }

    .col-left {
        display: none; /* Often hidden on mobile or moved to burger menu */
    }

    .box.text {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }

    table td {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    table tr td:first-child {
        background: #f0f2f5;
        color: var(--color-primary);
        font-weight: 700;
    }
}

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

.box.text {
    animation: fadeIn 0.6s ease-out;
}

/* Micro-interactions */
button:active, .btn:active {
    transform: scale(0.98);
}
