/* Documentation page styles for desktop */
.docs-container {
    display: flex;
    min-height: 100vh;       /* ровно высота экрана */
    width: 100%;          /* на всю ширину */
    max-width: none;      /* без максимальной ширины */
    margin: 0;            /* убираем авто-отступы */
    background: #ffffff;
    border-radius: 0;     /* без скругления краёв */
    box-shadow: none;     /* без тени, чтобы не обрезало по краям */
    overflow: visible;    /* даём странице прокручиваться */
}

/* Боковая навигация */
.docs-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: none;
    height: 100vh;           /* растягиваем на всю высоту */
}

.docs-nav-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.docs-nav-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.docs-nav-menu {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.docs-nav-item {
    margin: 0;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.docs-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.docs-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

.docs-nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Основной контент */
.docs-content {
    flex: 1;
    overflow-y: visible;   /* без внутреннего скролла */
    max-height: none;
    height: auto;          /* высота по содержимому */
}

.docs-content-inner {
    padding: 2rem 3rem;
}

.docs-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.docs-section:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.docs-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.docs-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Блоки контента */
.docs-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.docs-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.block-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.block-icon i {
    font-size: 1.5rem;
    color: white;
}

.block-content {
    flex: 1;
}

.block-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 0;
}

.block-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.block-content ul, .block-content ol {
    margin-left: 1.5rem;
    color: #555;
}

.block-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Сетка возможностей */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #667eea;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card > p {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: #7f8c8d;
}

/* Код блоки */
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Футер */
.docs-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.docs-footer p {
    margin: 0.5rem 0;
}

/* Список версий */
.versions-list {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.versions-list h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.version-item {
    margin: 0;
}

.version-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.9rem;
}

.version-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.version-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

.version-link i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

.version-header {
    margin-bottom: 2rem;
    text-align: center;
}

.version-content {
    margin-bottom: 2rem;
}

/* Корректное отображение markdown контента версий */
.version-content {
    white-space: normal; /* управление переносами через HTML */
    tab-size: 4;         /* ширина таба */
    line-height: 1.35;   /* плотнее общий текст */
}

.version-content ul,
.version-content ol {
    margin: 0.2rem 0 0.4rem 1.2rem; /* ещё компактнее */
    padding-left: 0.9rem;            /* внутр. отступ для маркеров */
}

.version-content ul ul,
.version-content ol ol,
.version-content ul ol,
.version-content ol ul {
    margin-left: 1rem;      /* компактный отступ для вложенных списков */
}

.version-content li {
    margin: 0.12rem 0;     /* минимальный межпунктовый отступ */
    line-height: 1.3;      /* плотные списки */
}

/* Компактные отступы заголовков и абзацев внутри версий */
.version-content p {
    margin: 0.3rem 0;     /* ещё меньше отступ у абзацев */
}

.version-content h1,
.version-content h2,
.version-content h3,
.version-content h4,
.version-content h5,
.version-content h6 {
    margin: 0.5rem 0 0.25rem; /* ещё компактнее заголовки */
    line-height: 1.25;
}

/* Скролл для боковой панели */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Скролл для контента */
.docs-content::-webkit-scrollbar {
    width: 8px;
}

.docs-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.docs-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.docs-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
