
:root {
    /* Цветовая палитра */
    --primary-bg: #f4f6f9;
    --card-bg: #ffffff;
    --header-bg: #1a232e;
    --sidebar-bg: #ffffff;
    
    --accent-blue: #428CDC;
    --accent-blue-dark: #2a6bb5;
    --accent-orange: #ff6b00;
    --accent-orange-dark: #e65100;
    
    --text-main: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    
    --border-color: #e9ecef;
    
    /* Отступы и размеры */
    --spacing-unit: 0.5rem;
    --border-radius: 0.75rem; /* 12px */
    --container-width: 1200px;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 25px rgba(66, 140, 220, 0.25);

    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--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%;
}

/* --- Утилиты (на основе классов из HTML) --- */
.wrap {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.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; }

.w500 { font-weight: 500; }
.f12 { font-size: 0.75rem; }

.radius20 { border-radius: 1.25rem; }
.h30 { height: 1.875rem; line-height: 1.875rem; }

/* Скрытие элементов */
@media (max-width: 992px) {
    .hide_992 { display: none !important; }
}

/* --- Header --- */
header {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 100;
}

.head-top {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

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

/* Логотип */
.logo svg {
    height: 2.5rem;
    width: auto;
    transition: transform var(--transition-normal);
}

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

/* Кнопки и иконки в шапке */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-left: 0.5rem;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-icon svg path {
    fill: var(--text-light); /* Переопределяем цвет иконок на белый для контраста */
}

/* Кнопки действий */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
    gap: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.fon-blu, .fon-blu2 {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    color: white;
}

.fon-orang {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

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

.download {
    color: rgba(255,255,255,0.7);
}

.drop {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    padding: 0 0.5rem;
    transition: color var(--transition-fast);
}

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

/* Главное меню */
.main-menu ul {
    display: flex;
    gap: 1.5rem;
}

.main-menu a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.8);
}

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

.main-menu a:hover {
    color: white;
}

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

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

@media (max-width: 992px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

/* --- Sidebar (Left Menu) --- */
.col-left {
    position: relative;
}

.menu-category {
    background: var(--sidebar-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    overflow: hidden;
}

.menu-category ul li {
    position: relative;
}

.menu-category > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
    gap: 0.75rem;
}

.menu-category > ul > li > a svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: var(--text-secondary); /* Делаем иконки серыми по умолчанию */
    transition: fill var(--transition-fast);
}

.menu-category > ul > li > a:hover {
    background-color: rgba(66, 140, 220, 0.08);
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

.menu-category > ul > li > a:hover svg {
    fill: var(--accent-blue);
}

/* Вложенные списки в сайдбаре */
.menu-category ul ul {
    background-color: #fafafa;
    padding: 0.5rem 0;
}

.menu-category ul ul li a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

/* --- Main Content --- */
.content {
    background: transparent;
    border-radius: var(--border-radius);
}

#block_big {
    min-height: 20px; /* Placeholder styling */
}

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

/* Типографика контента */
h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--header-bg);
    border-left: 4px solid var(--accent-orange);
    padding-left: 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
}

/* Кнопка "Перейти" */
.refka {
    text-align: center;
    margin: 2rem 0;
}

.refka a {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--accent-orange), #ff8a33);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 3rem;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    transition: all var(--transition-normal);
}

.refka a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 107, 0, 0.4);
}

/* Списки в контенте */
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    color: var(--text-main);
}

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

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

.entry-content nav ol li a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all var(--transition-fast);
}

.entry-content nav ol li a:hover {
    color: var(--accent-blue-dark);
    text-decoration-color: currentColor;
}

/* Таблицы */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

table tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

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

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

table td {
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

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

/* --- Mobile / Responsive --- */
@media (max-width: 768px) {
    .head-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .head-bottom {
        justify-content: space-between;
    }

    .btn {
        width: 100%; /* Полная ширина для кнопок на мобильных */
        margin-bottom: 0.5rem;
    }
    
    .box.text {
        padding: 1.5rem;
    }
    
    table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    table tr td:first-child {
        width: 40%;
    }
}

/* --- Inputs/Forms (Generic styling since implied) --- */
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
 
::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999; 
}
