
:root {
    /* Цветовая палитра */
    --primary-color: #428CDC;
    --primary-hover: #357ABD;
    --secondary-color: #1183D3;
    --accent-color: #fb4d00;
    --accent-hover: #e04300;
    --text-main: #2A2D30;
    --text-secondary: #5F6469;
    --bg-body: #f5f7fa;
    --bg-white: #ffffff;
    --bg-header: #ffffff;
    --border-color: #e6e8eb;
    
    /* Отступы и размеры */
    --gap-xs: 0.25rem;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;
    
    /* Радиусы и тени */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-pill: 2rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    /* Шрифты */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
}

/* CSS Reset & Base Styles */
*, *::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(--bg-body);
    color: var(--text-main);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Layout Utilities */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap-md);
    width: 100%;
}

.flx {
    display: flex;
}

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

.aic {
    align-items: center;
}

.fxg {
    flex-grow: 1;
}

.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.r20 { margin-right: 1.25rem; }
.h30 { height: 1.875rem; }
.w500 { font-weight: 500; }
.f12 { font-size: 0.75rem; }
.radius20 { border-radius: var(--radius-pill); }

/* Header Styles */
header {
    background-color: var(--bg-header);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-bottom: var(--gap-md);
}

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

.download {
    color: var(--text-secondary);
    background-color: #f0f4f8;
    padding: 0 var(--gap-md);
    font-size: 0.75rem;
    transition: background-color 0.3s ease;
}

.download:hover {
    background-color: #e1e8ed;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: var(--gap-xs);
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-icon:hover {
    transform: translateY(-2px);
    background-color: rgba(66, 140, 220, 0.1);
}

.fon-blu {
    background-color: rgba(66, 140, 220, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 0 var(--gap-md);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fon-blu:hover {
    background-color: rgba(66, 140, 220, 0.2);
}

.fon-blu svg, .fon-blu2 svg {
    margin-right: var(--gap-xs);
}

.fon-blu2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--gap-md);
    font-size: 0.75rem;
    font-weight: 600;
    height: 1.875rem;
    box-shadow: 0 4px 10px rgba(66, 140, 220, 0.3);
    transition: all 0.3s ease;
}

.fon-blu2:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(66, 140, 220, 0.4);
    filter: brightness(1.1);
}

.fon-orang {
    background: linear-gradient(135deg, #ff8c00, var(--accent-color));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--gap-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(251, 77, 0, 0.3);
    transition: all 0.3s ease;
}

.fon-orang:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(251, 77, 0, 0.4);
    filter: brightness(1.1);
}

.drop {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--gap-sm);
    color: var(--primary-color);
    font-weight: 600;
    transition: opacity 0.3s;
}

.drop:hover {
    opacity: 0.7;
}

.drop svg {
    margin-right: 4px;
}

.head-bottom {
    padding-top: var(--gap-md);
    align-items: center;
    gap: var(--gap-xl);
}

.logo {
    width: 160px;
    flex-shrink: 0;
}

.logo svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.main-menu {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.main-menu ul {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.main-menu li {
    flex-grow: 1;
    text-align: center;
    height: 100%;
}

.main-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 var(--gap-sm);
    transition: background-color 0.3s ease;
}

.main-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

/* Sidebar Menu */
.col-left {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

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

.menu-category > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0.875rem var(--gap-md);
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-category > ul > li > a:hover {
    background-color: #f8faff;
    color: var(--primary-color);
    padding-left: calc(var(--gap-md) + 4px);
}

.menu-category svg {
    margin-right: var(--gap-md);
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.menu-category ul ul li a {
    display: flex;
    align-items: center;
    padding: 0.625rem var(--gap-md) 0.625rem 3rem; /* Indented */
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

.menu-category ul ul li a svg {
    position: absolute;
    left: var(--gap-md);
    width: 16px;
    height: 16px;
    margin-right: 0;
}

.menu-category ul ul li a:hover {
    color: var(--primary-color);
    background-color: #f0f7ff;
}

/* Main Content Area */
.content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--gap-xl);
}

.box.text h1 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--gap-lg);
    color: var(--text-main);
    text-align: center;
    line-height: 1.2;
}

.refka {
    text-align: center;
    margin-bottom: var(--gap-xl);
}

.refka a {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color), #ff7a00);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(251, 77, 0, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.refka a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 77, 0, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
}

.entry-content p {
    margin-bottom: var(--gap-md);
}

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.entry-content nav ol {
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    padding: var(--gap-lg) var(--gap-lg) var(--gap-lg) 2.5rem;
    margin-bottom: var(--gap-xl);
    border: 1px solid var(--border-color);
}

.entry-content nav ol li {
    margin-bottom: 0.5rem;
    list-style-type: decimal;
    font-weight: 500;
}

.entry-content nav ol li a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

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

.entry-content ul {
    margin-bottom: var(--gap-lg);
    padding-left: 1.5rem;
}

.entry-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 0.9375rem;
}

table tr:nth-child(even) {
    background-color: #f8faff;
}

table td {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    vertical-align: top;
}

table tr:hover {
    background-color: #f1f5f9;
}

table td:first-child {
    font-weight: 600;
    width: 30%;
    color: var(--text-secondary);
}

/* Forms (Styles as requested, though HTML doesn't have explicit forms, adding just in case) */
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 140, 220, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .col-left {
        display: none; /* Often sidebars are hidden or moved to off-canvas on mobile */
    }
    
    .head-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--gap-sm);
    }
    
    .head-bottom {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .wrap {
        padding: 0 var(--gap-sm);
    }

    .content {
        padding: var(--gap-md);
    }
    
    .table-responsive table {
        font-size: 0.85rem;
    }
    
    .table-responsive td {
        padding: 0.5rem;
    }
    
    .box.text h1 {
        margin-top: var(--gap-md);
    }
    
    /* Mobile Menu Buttons Adjustment */
    .head-top .flx {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .reg, .enter {
        width: 100%;
        margin-bottom: var(--gap-xs);
    }
}

/* Utility Classes for specific HTML elements */
.shadow-white {
    box-shadow: 0 2px 5px rgba(255,255,255,0.2);
}

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

/* Image styling */
img.aligncenter {
    margin: var(--gap-lg) auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
