/* Fallback CSS для страниц документов */
/* Используется когда Tailwind недоступен */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Container */
.container, .max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* Links */
a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    color: #2563eb;
}

/* Hero section */
.hero-section, .bg-gradient-to-br {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Content section */
.content-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Table styles */
.definition-table {
    width: 100%;
    border-collapse: collapse;
}

.definition-table td {
    border: 1px solid #e5e7eb;
    padding: 16px;
    vertical-align: top;
}

.definition-table td:first-child {
    background-color: #f9fafb;
    font-weight: 600;
    width: 40%;
}

/* Sidebar navigation */
.sidebar-nav {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    color: #6b7280;
}

.sidebar-nav a:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

.sidebar-nav a.active {
    color: #3b82f6;
    font-weight: 600;
    border-left: 3px solid #3b82f6;
    background-color: #eff6ff;
}

/* Grid layout */
.lg\\:grid {
    display: grid;
}

.lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lg\\:col-span-1 {
    grid-column: span 1 / span 1;
}

.lg\\:col-span-3 {
    grid-column: span 3 / span 3;
}

.lg\\:gap-8 {
    gap: 2rem;
}

/* Utilities */
.hidden {
    display: none;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-gray-900 {
    color: #111827;
}

.font-bold {
    font-weight: 700;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Responsive */
@media (min-width: 1024px) {
    .lg\\:block {
        display: block;
    }
}

@media (max-width: 768px) {
    .md\\:hidden {
        display: none;
    }
    
    .lg\\:grid {
        display: block;
    }
}