:root {
    --primary-color: #7b1fa2;
    --primary-light: #9c27b0;
    --primary-dark: #6a1b9a;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Единая система размеров шрифтов */
    --font-size-xs: 0.6rem;      /* Самый маленький (подписи, мета-информация) */
    --font-size-sm: 0.7rem;      /* Маленький (вторичный текст, описания) */
    --font-size-base: 0.7rem;    /* Базовый (основной текст, ссылки) */
    --font-size-md: 1rem;        /* Средний (заголовки h4, параграфы) */
    --font-size-lg: 1.1rem;      /* Большой (заголовки h3) */
    --font-size-xl: 1.25rem;    /* Очень большой (заголовки h2) */
    --font-size-2xl: 1.4rem;     /* Заголовки h1 */
    --font-size-3xl: 1.8rem;     /* Hero заголовки */
}

/** {*/
/*    scroll-behavior: smooth;*/
/*}*/

/*body {*/
/*    background: #ffffff;*/
/*    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;*/
/*    font-size: 16px;*/
/*}*/

/*!* скролл у контейнера таблиц*!*/
/*::-webkit-scrollbar {*/
/*    width: 9px;*/
/*    height: 9px;*/
/*}*/

/*::-webkit-scrollbar-track {*/
/*    background: #f5f5f5;*/
/*    border-radius: var(--radius-sm);*/
/*}*/

/*::-webkit-scrollbar-thumb {*/
/*    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);*/
/*    border-radius: var(--radius-sm);*/
/*    transition: var(--transition);*/
/*}*/

/*::-webkit-scrollbar-thumb:hover {*/
/*    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);*/
/*}*/

/*.md-content {*/
/*    max-width: none;*/
/*    margin: 0 auto;*/
/*    !*padding: 1rem;*!*/
/*}*/

/*.md-content__inner {*/
/*    !*padding: 0.15rem 2rem 0.25rem;*!*/
/*    background: transparent;*/
/*    margin: 0 auto;*/
/*    max-width: 1200px;*/
/*}*/

/*.md-header {*/
/*    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);*/
/*    border-bottom: none;*/
/*    box-shadow: var(--shadow-sm);*/
/*    transition: var(--transition);*/
/*    padding: 0 1.5rem;*/
/*}*/

/*.md-header__title {*/
/*    font-weight: 600;*/
/*    color: white;*/
/*}*/

/*.md-header__button {*/
/*    color: white;*/
/*    transition: var(--transition);*/
/*}*/

/*.md-header__button:hover {*/
/*    transform: scale(1.1);*/
/*    opacity: 0.9;*/
/*}*/

/*.md-search__form {*/
/*    background: rgba(255, 255, 255, 0.98);*/
/*    border: 2px solid rgba(255, 255, 255, 0.2);*/
/*    border-radius: 24px;*/
/*    transition: var(--transition);*/
/*    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);*/
/*    backdrop-filter: blur(10px);*/
/*}*/

/*.md-search__form:hover {*/
/*    border-color: rgba(255, 255, 255, 0.4);*/
/*    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);*/
/*    transform: translateY(-1px);*/
/*}*/

/*.md-search__form:focus-within {*/
/*    border-color: white;*/
/*    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.3);*/
/*    transform: translateY(-1px);*/
/*}*/

/*.md-search__input {*/
/*    color: var(--text-primary);*/
/*    font-size: 0.9rem;*/
/*    padding: 0 2.2rem 0 2.8rem;*/
/*}*/

/*.md-search__input::placeholder {*/
/*    color: var(--text-secondary);*/
/*    opacity: 0.8;*/
/*    font-weight: 400;*/
/*}*/

/*.md-search__icon {*/
/*    color: #333 !important;*/
/*    opacity: 1 !important;*/
/*    transition: var(--transition);*/
/*}*/

/*.md-search__icon[for="__search"] {*/
/*    opacity: 1 !important;*/
/*    left: 0.8rem;*/
/*    color: #333 !important;*/
/*}*/

/*.md-search__form:hover .md-search__icon[for="__search"] {*/
/*    opacity: 1 !important;*/
/*    transform: scale(1.15);*/
/*    color: #000 !important;*/
/*}*/

/*.md-search__icon[type="reset"] {*/
/*    display: none;*/
/*}*/

/*.md-search__input:not(:placeholder-shown) ~ .md-search__icon[type="reset"] {*/
/*    display: block;*/
/*    color: #666 !important;*/
/*}*/

.hero {
    text-align: center;
    padding: 0.25rem 1rem 0.25rem;
    margin: 0 auto 0.25rem;
    max-width: 900px;
    position: relative;
    animation: fadeInDown 0.6s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/*@keyframes fadeInDown {*/
/*    from {*/
/*        opacity: 0;*/
/*        transform: translateY(-20px);*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: translateY(0);*/
/*    }*/
/*}*/

.hero h1 {
    font-size: 2.8rem; /* Увеличенный размер только для главной */
    font-weight: 800;
    margin-bottom: 0.15rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 0.8s ease-out 0.2s both;
    letter-spacing: -0.8px;
    line-height: 1.15;
    text-align: center !important;
}

/*@keyframes fadeIn {*/
/*    from {*/
/*        opacity: 0;*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*    }*/
/*}*/

.hero-subtext {
    font-size: 0.85rem; /* Увеличенный размер только для главной */
    color: var(--text-secondary);
    margin: 0 auto 0.25rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
    font-weight: 400;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.grid-layout {
    display: grid;
    gap: 1rem;
}

.toc-section {
    animation: fadeInUp 0.6s ease-out 0.3s both;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    list-style: none;
    margin-bottom: 0.5rem; /* Уменьшенный отступ между карточками */
    animation: fadeInUp 0.5s ease-out both;
}

.toc-list li:nth-child(1) { animation-delay: 0.4s; }
.toc-list li:nth-child(2) { animation-delay: 0.5s; }
.toc-list li:nth-child(3) { animation-delay: 0.6s; }
.toc-list li:nth-child(4) { animation-delay: 0.7s; }
.toc-list li:nth-child(5) { animation-delay: 0.8s; }

.toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: var(--transition);
}

.toc-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(123, 31, 162, 0.1);
}

.toc-link:hover::before {
    width: 6px;
}

.toc-link:active {
    transform: translateY(0);
}

.toc-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
}

.toc-item-content .title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem; /* Увеличенный размер только для главной */
    transition: var(--transition);
}

.toc-link:hover .title {
    color: var(--primary-light);
}

.desc {
    font-size: 0.85rem; /* Увеличенный размер только для главной */
    color: var(--text-secondary);
    transition: var(--transition);
}

.toc-link:hover .desc {
    color: var(--text-primary);
}

.metric-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem; /* Увеличенный размер только для главной */
    font-weight: 600;
    margin-left: 0.6rem;
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.2);
    transition: var(--transition);
    white-space: nowrap;
}

.toc-link:hover .metric-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

.global-update {
    max-width: 900px;
    margin: 0.25rem auto 0.25rem;
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    padding: 0 1rem;
    box-sizing: border-box;
    /*padding: 0.4rem;*/
    /*background: #f8f8f8;*/
    /*border-radius: var(--radius-md);*/
    /*box-shadow: var(--shadow-sm);*/
    /*animation: fadeIn 0.8s ease-out 0.9s both;*/
}

/*.md-sidebar--primary {*/
/*    background: white !important;*/
/*    border-right: 1px solid #e0e0e0 !important;*/
/*    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);*/
/*}*/

/*.md-sidebar__inner {*/
/*    background: white !important;*/
/*    border-right: none !important;*/
/*    padding-left: 0;*/
/*    padding-right: 0;*/
/*}*/

/*.md-nav__title {*/
/*    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%) !important;*/
/*    color: var(--text-primary) !important;*/
/*    font-weight: 700;*/
/*    font-size: 0.75rem;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: 0.5px;*/
/*    padding: 14px 12px;*/
/*    box-shadow: none !important;*/
/*    border-right: none !important;*/
/*    border-bottom: 2px solid var(--primary-color);*/
/*    transition: var(--transition);*/
/*}*/

/*.md-nav__title:hover {*/
/*    background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%) !important;*/
/*}*/

/*.md-nav--primary .md-nav__title {*/
/*    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%) !important;*/
/*    color: var(--text-primary) !important;*/
/*    border-right: none !important;*/
/*}*/

/*.md-nav--primary .md-nav__title[for] {*/
/*    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%) !important;*/
/*    border-right: none !important;*/
/*}*/

/*.md-nav__link {*/
/*    padding: 8px 12px;*/
/*    font-size: 0.85rem;*/
/*    color: var(--text-primary);*/
/*    border-radius: var(--radius-sm);*/
/*    margin: 2px 4px;*/
/*    transition: var(--transition);*/
/*    white-space: normal;*/
/*    word-wrap: break-word;*/
/*    line-height: 1.4;*/
/*}*/

/*.md-nav__link:hover {*/
/*    background: #f0f0f0;*/
/*    color: var(--primary-color);*/
/*    transform: translateX(4px);*/
/*}*/

/*.md-nav__link--active {*/
/*    background: linear-gradient(90deg, rgba(123, 31, 162, 0.1) 0%, transparent 100%);*/
/*    color: var(--primary-color);*/
/*    font-weight: 600;*/
/*    border-left: 3px solid var(--primary-color);*/
/*    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;*/
/*}*/

/*.md-typeset table:not([class]) {*/
/*    width: auto;*/
/*    max-width: 1200px;*/
/*    border-collapse: collapse;*/
/*    font-size: 0.875rem;*/
/*    margin: 0.5rem auto;*/
/*    border: 1px solid #e0e0e0;*/
/*    background: #fff;*/
/*    border-radius: var(--radius-md);*/
/*    overflow: hidden;*/
/*    box-shadow: var(--shadow-sm);*/
/*}*/

/*.md-typeset table:not([class]) thead {*/
/*    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);*/
/*    color: var(--text-primary);*/
/*    border-bottom: 2px solid var(--primary-color);*/
/*}*/

/*.md-typeset table:not([class]) thead th {*/
/*    padding: 12px 16px;*/
/*    font-weight: 700;*/
/*    text-align: left;*/
/*    font-size: 0.8rem;*/
/*    border-bottom: none;*/
/*    white-space: nowrap;*/
/*    vertical-align: middle;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: 0.3px;*/
/*}*/

/*.md-typeset table:not([class]) tbody td {*/
/*    padding: 10px 16px;*/
/*    border-bottom: 1px solid #f0f0f0;*/
/*    font-size: 0.85rem;*/
/*    line-height: 1.5;*/
/*    vertical-align: top;*/
/*}*/

/*.md-typeset table:not([class]) tbody tr:nth-child(even) {*/
/*    background-color: #fafafa;*/
/*}*/

/*.md-typeset table:not([class]) tbody tr:nth-child(odd) {*/
/*    background-color: #fff;*/
/*}*/

/*.md-typeset table:not([class]) tbody tr {*/
/*    transition: var(--transition);*/
/*}*/

/*.md-typeset table:not([class]) tbody tr:hover {*/
/*    background: #f5f5f5;*/
/*}*/

/*.md-typeset table:not([class]) tbody tr:last-child td {*/
/*    border-bottom: none;*/
/*}*/

/*.md-typeset table:not([class]) tbody td:first-child {*/
/*    font-weight: 500;*/
/*    color: var(--text-primary);*/
/*}*/

/*.md-typeset table:not([class]) tbody td:first-child a {*/
/*    color: var(--text-primary);*/
/*    font-weight: 500;*/
/*    text-decoration: none;*/
/*    transition: var(--transition);*/
/*    display: inline-block;*/
/*}*/

/*.md-typeset table:not([class]) tbody td:first-child a::after {*/
/*    display: none;*/
/*}*/

/*.md-typeset table:not([class]) tbody td:first-child a:hover {*/
/*    color: var(--primary-color);*/
/*    text-decoration: none;*/
/*}*/

/*.card {*/
/*    background: white;*/
/*    border-radius: var(--radius-md);*/
/*    padding: 1.5rem;*/
/*    box-shadow: var(--shadow-sm);*/
/*    transition: var(--transition);*/
/*}*/

/*.card:hover {*/
/*    box-shadow: var(--shadow-md);*/
/*}*/

/*.table-wrapper {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    margin: 1.5rem auto;*/
/*    max-width: 100%;*/
/*}*/

/*.table-wrapper table {*/
/*    margin: 0;*/
/*}*/

/*.table-search-container {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    gap: 1rem;*/
/*    !*margin: 0.5rem auto 0.5rem;*!*/
/*    padding: 12px 16px;*/
/*    background: #fafafa;*/
/*    border: 1px solid #e0e0e0;*/
/*    border-radius: var(--radius-md);*/
/*    !*max-width: 600px;*!*/
/*    box-shadow: var(--shadow-sm);*/
/*}*/

.table-search-input { /* поиск в таблице */
    flex: 1;
    width: 100%;
    padding: 8px 8px;
    border: 2px solid #e0e0e0;
    /*border-radius: var(--radius-sm);*/
    font-size: var(--font-size-sm);
    background: #fff;
    transition: var(--transition);
}

.table-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
}

.table-search-input::placeholder {
    color: #aaa;
}

.table-search-results {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 400;
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
}

/*.custom-notification {*/
/*    position: fixed;*/
/*    bottom: 2rem;*/
/*    right: 2rem;*/
/*    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);*/
/*    color: white;*/
/*    padding: 1rem 1.5rem;*/
/*    border-radius: var(--radius-md);*/
/*    font-weight: 500;*/
/*    font-size: 0.9rem;*/
/*    z-index: 10000;*/
/*    opacity: 0;*/
/*    max-width: 320px;*/
/*    box-shadow: var(--shadow-lg);*/
/*    transform: translateY(20px);*/
/*    transition: var(--transition);*/
/*}*/

/*.custom-notification.show {*/
/*    opacity: 1;*/
/*    transform: translateY(0);*/
/*}*/

/* Заголовки - центрированные, компактные и эстетичные */
/* Стили применяются только к обычным заголовкам, не к тем что в center или nav-card */
.md-typeset h1 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.9rem;
    margin-top: 1.8rem;
    text-align: left;
    padding: 0.5rem 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.md-typeset h1:first-child {
    margin-top: 1rem;
}

.md-typeset h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    text-align: left;
    padding: 0.4rem 0;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.md-typeset h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.4rem;
    margin-bottom: 0.7rem;
    text-align: left;
    padding: 0.35rem 0;
    line-height: 1.4;
}

.md-typeset h4 {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    text-align: left;
    padding: 0.3rem 0;
    line-height: 1.4;
}

.md-typeset h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 0.25rem 0;
    line-height: 1.4;
}

.md-typeset h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 0.25rem 0;
    line-height: 1.4;
}

/* Уменьшенные отступы для центрированных заголовков (уже существующие) */
.md-typeset h1:has(center) {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    text-align: center;
}

.md-typeset h2:has(center) {
    margin-top: 0.75rem;
    margin-bottom: 0.6rem;
    text-align: center;
}

.md-typeset h3:has(center) {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Скрываем символ параграфа (¶) для центрированных заголовков */
.md-typeset h1:has(center) .headerlink,
.md-typeset h2:has(center) .headerlink,
.md-typeset h3:has(center) .headerlink {
    display: none;
}

.md-typeset p {
    line-height: 1.6;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    margin-top: 0.4rem;
}

.md-typeset a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.md-typeset a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: var(--transition);
}

.md-typeset a:hover {
    color: var(--primary-light);
}

.md-typeset a:hover::after {
    width: 100%;
}

.md-typeset code {
    background: #f5f5f5;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.md-typeset code:hover {
    background: #eeeeee;
    border-color: var(--primary-color);
}

.md-typeset pre {
    background: #2d2d2d;
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: var(--shadow-sm);
    margin: 0.05rem 0;
    padding: 0.05rem;
}

.md-typeset .admonition {
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin: 1.25rem 0;
}

.md-typeset .admonition:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.md-typeset .admonition-title {
    background: #f0f0f0;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.md-typeset .admonition-content {
    padding: 12px 16px;
}

.md-typeset ul, .md-typeset ol {
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.md-typeset li {
    margin-bottom: 0.3rem;
}

.md-typeset li > p {
    margin-bottom: 0.3rem;
    margin-top: 0.2rem;
}

.md-typeset blockquote {
    border-left: 3px solid var(--primary-color);
    background: #f9f9f9;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-size: var(--font-size-base);
}

.md-typeset blockquote:hover {
    background: #f5f5f5;
    padding-left: 1.5rem;
}

.md-typeset hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

/* Изображения */
.md-typeset img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 1.5rem auto;
    display: block;
    transition: var(--transition);
}

/*.md-typeset img:hover {*/
/*    box-shadow: var(--shadow-md);*/
/*    transform: scale(1.02);*/
/*}*/

/*!* Подписи к изображениям *!*/
/*.md-typeset figure {*/
/*    margin: 1.5rem 0;*/
/*    text-align: center;*/
/*}*/

/*.md-typeset figcaption {*/
/*    margin-top: 0.5rem;*/
/*    font-size: 0.85rem;*/
/*    color: var(--text-secondary);*/
/*    font-style: italic;*/
/*}*/

/*.md-sidebar--secondary {*/
/*    background: white !important;*/
/*    border-left: 1px solid var(--border-color);*/
/*    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.04);*/
/*}*/

/*.md-sidebar--secondary .md-sidebar__inner {*/
/*    background: white !important;*/
/*}*/

/*.md-nav--secondary .md-nav__title {*/
/*    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%) !important;*/
/*    color: var(--text-primary) !important;*/
/*    font-weight: 700;*/
/*    font-size: 0.8rem;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: 0.5px;*/
/*    padding: 14px 16px;*/
/*    box-shadow: none !important;*/
/*    border-bottom: 2px solid var(--primary-color);*/
/*}*/

/*.md-nav--secondary .md-nav__link {*/
/*    font-size: 0.8rem;*/
/*    padding: 6px 12px;*/
/*    color: var(--text-secondary);*/
/*    border-left: 2px solid transparent;*/
/*    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;*/
/*    transition: var(--transition);*/
/*    margin: 2px 0;*/
/*}*/

/*.md-nav--secondary .md-nav__link:hover {*/
/*    color: var(--primary-color);*/
/*    border-left-color: var(--primary-color);*/
/*    background: #f0f0f0;*/
/*    padding-left: 16px;*/
/*}*/

/*.md-nav--secondary .md-nav__link--active {*/
/*    color: var(--primary-color);*/
/*    font-weight: 600;*/
/*    border-left-color: var(--primary-color);*/
/*    border-left-width: 3px;*/
/*    background: linear-gradient(90deg, rgba(123, 31, 162, 0.08) 0%, transparent 100%);*/
/*}*/

/*.md-top {*/
/*    background: var(--primary-color);*/
/*    color: white;*/
/*}*/

/*.back-to-toc {*/
/*    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);*/
/*    border: 2px solid var(--primary-color);*/
/*    border-radius: 50%;*/
/*    box-shadow: var(--shadow-lg);*/
/*    transition: var(--transition);*/
/*    width: 56px;*/
/*    height: 56px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    position: fixed;*/
/*    bottom: 6rem;*/
/*    right: 2rem;*/
/*    z-index: 100;*/
/*    cursor: pointer;*/
/*    opacity: 0;*/
/*    visibility: hidden;*/
/*    color: var(--primary-color);*/
/*    text-decoration: none;*/
/*}*/

/*.back-to-toc.show {*/
/*    opacity: 1;*/
/*    visibility: visible;*/
/*}*/

/*.back-to-toc:hover {*/
/*    transform: translateY(-4px) scale(1.1);*/
/*    box-shadow: 0 8px 24px rgba(123, 31, 162, 0.3);*/
/*    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);*/
/*    color: white;*/
/*    border-color: var(--primary-light);*/
/*}*/

/*.back-to-toc:active {*/
/*    transform: translateY(-2px) scale(1.05);*/
/*}*/

/*.back-to-toc svg {*/
/*    width: 24px;*/
/*    height: 24px;*/
/*}*/

/*.md-footer__link {*/
/*    background: #fff;*/
/*    border-radius: var(--radius-md);*/
/*    padding: 1rem;*/
/*    border: 1px solid var(--border-color);*/
/*    transition: var(--transition);*/
/*}*/

/*.md-footer__link:hover {*/
/*    background: #f9f9f9;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: var(--shadow-sm);*/
/*}*/

/*.md-footer {*/
/*    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);*/
/*    border-top: none;*/
/*    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);*/
/*}*/

/*.md-footer-meta {*/
/*    background: rgba(0, 0, 0, 0.1);*/
/*}*/

/*.md-footer__link {*/
/*    color: white;*/
/*}*/

/*.md-footer-copyright {*/
/*    color: rgba(255, 255, 255, 0.9);*/
/*}*/

/*.md-typeset table tbody td {*/
/*    cursor: pointer;*/
/*    transition: var(--transition);*/
/*}*/

/*.md-typeset table tbody td.copied {*/
/*    background: linear-gradient(135deg, #c5e1a5 0%, #aed581 100%);*/
/*    animation: pulse 0.5s ease-out;*/
/*}*/

/*@keyframes pulse {*/
/*    0%, 100% {*/
/*        transform: scale(1);*/
/*    }*/
/*    50% {*/
/*        transform: scale(1.02);*/
/*    }*/
/*}*/

/*.md-grid {*/
/*    max-width: none;*/
/*    width: 100%;*/
/*}*/

/*.md-main__inner {*/
/*    max-width: none;*/
/*}*/

/*.md-content {*/
/*    max-width: none;*/
/*    flex: 1;*/
/*    padding: 0.5rem 2rem 1.5rem;*/
/*}*/

/*.md-typeset {*/
/*    max-width: none;*/
/*    font-size: 0.95rem;*/
/*    line-height: 1.5;*/
/*}*/

/*@media screen and (min-width: 76.25em) {*/
/*    .md-sidebar--primary {*/
/*        width: 320px;*/
/*    }*/

/*    .md-sidebar--secondary {*/
/*        width: 220px;*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .md-content__inner {*/
/*        padding: 1rem;*/
/*    }*/

/*    .md-typeset h1 {*/
/*        font-size: 1.5rem;*/
/*    }*/

/*    .md-typeset h2 {*/
/*        font-size: 1.25rem;*/
/*    }*/

/*    .hero {*/
/*        padding: 1rem 1rem 1.5rem;*/
/*    }*/

/*    .hero h1 {*/
/*        font-size: 2rem;*/
/*        letter-spacing: -0.3px;*/
/*    }*/

/*    .hero-subtext {*/
/*        font-size: 1rem;*/
/*    }*/

/*    .toc-link {*/
/*        flex-direction: column;*/
/*        align-items: flex-start;*/
/*        gap: 0.75rem;*/
/*    }*/

/*    .metric-badge {*/
/*        margin-left: 0;*/
/*        align-self: flex-start;*/
/*    }*/

/*    .custom-notification {*/
/*        bottom: 1rem;*/
/*        right: 1rem;*/
/*        left: 1rem;*/
/*        max-width: none;*/
/*    }*/
/*}*/

/*@media print {*/
/*    .md-sidebar,*/
/*    .md-header,*/
/*    .md-footer {*/
/*        display: none;*/
/*    }*/

/*    .md-content__inner {*/
/*        background: white;*/
/*    }*/
/*}*/

/*.md-header__inner {*/
/*    padding: 0;*/
/*}*/

/*.md-header-nav__button {*/
/*    margin: 0.4rem 0.5rem 0.4rem 0;*/
/*}*/

/*.md-header-nav__button:first-child {*/
/*    margin-left: 0;*/
/*}*/

/*.md-search {*/
/*    margin-right: 0.5rem;*/
/*}*/

/*!* ========================================*/
/*   СТИЛИ ДЛЯ ГОРИЗОНТАЛЬНОЙ ПРОКРУТКИ ТАБЛИЦ*/
/*   ======================================== *!*/

/*!* Контейнер с прокруткой *!*/
/*div[style*="overflow-x"] {*/
/*    overflow-x: auto !important;*/
/*    overflow-y: visible !important;*/
/*    margin: 0.5rem 0 !important;*/
/*    border: 2px solid #e0e0e0 !important;*/
/*    border-radius: var(--radius-md) !important;*/
/*    box-shadow: var(--shadow-sm) !important;*/
/*    padding: 0 !important;*/
/*    width: 100% !important;*/
/*    max-width: 100% !important;*/
/*    !*-webkit-overflow-scrolling: touch;*!*/
/*    background: white;*/
/*}*/

/*!* Таблица внутри контейнера с прокруткой *!*/
/*div[style*="overflow-x"] table {*/
/*    width: auto !important;*/
/*    min-width: 100% !important;*/
/*    max-width: none !important;*/
/*    margin: 0 !important;*/
/*    border: none !important;*/
/*    border-radius: 0 !important;*/
/*    display: table !important;*/
/*    table-layout: auto !important;*/
/*}*/

/*!* Ячейки таблицы - запрещаем перенос для сохранения структуры *!*/
/*div[style*="overflow-x"] table td,*/
/*div[style*="overflow-x"] table th {*/
/*    !*white-space: nowrap !important;*!*/
/*    padding: 5px 8px !important;*/
/*    min-width: 120px;*/
/*    max-width: none !important;*/
/*}*/

/* Первая колонка - делаем шире */
div[style*="overflow-x"] table td:first-child,
div[style*="overflow-x"] table th:first-child {
    min-width: 200px;
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 1;
}

/*!* Для текста в обратных кавычках - разрешаем перенос *!*/
/*div[style*="overflow-x"] table td code {*/
/*    white-space: pre-wrap !important;*/
/*    word-break: break-word !important;*/
/*    max-width: 400px;*/
/*    display: inline-block;*/
/*}*/
/*}*/

/*!* Красивый скроллбар для контейнера с таблицей *!*/
/*!*div[style*="overflow-x"]::-webkit-scrollbar {*!*/
/*!*  height: 14px;*!*/
/*!*}*!*/

/*div[style*="overflow-x"]::-webkit-scrollbar-track {*/
/*    background: #f5f5f5;*/
/*    border-radius: 0 0 var(--radius-md) var(--radius-md);*/
/*    border-top: 1px solid #e0e0e0;*/
/*}*/

/*div[style*="overflow-x"]::-webkit-scrollbar-thumb {*/
/*    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);*/
/*    border-radius: var(--radius-sm);*/
/*    border: 2px solid #f5f5f5;*/
/*}*/

/*div[style*="overflow-x"]::-webkit-scrollbar-thumb:hover {*/
/*    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);*/
/*}*/

/*!* Убираем ограничения ширины для контента *!*/
/*.md-content__inner {*/
/*    max-width: none !important;*/
/*}*/

/*!* Для табов в grouped таблице *!*/
/*.tabbed-set {*/
/*    width: 100%;*/
/*}*/

/*.tabbed-content {*/
/*    width: 100%;*/
/*}*/

/* Список карточек */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0 0.1rem;
    animation: fadeInUp 0.6s ease-out;
}

/* Навигационная карточка */
.nav-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.4rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: var(--transition);
}

.nav-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.nav-card:hover::before {
    width: 6px;
}

.nav-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.nav-card h3 {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.nav-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-card-title {
    display: inline-block;
    min-width: 110px;
    flex-shrink: 0;
    color: var(--text-primary);
    text-decoration: none;
    cursor: default;
}

.nav-card-title[href] {
    cursor: pointer;
    transition: var(--transition);
}

.nav-card-title[href]:hover {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nav-card h3 a::after {
    display: none;
}

.nav-card:hover h3 a {
    color: var(--primary-light);
}

.nav-card-links {
    margin-left: 0.5rem;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.nav-card h3 .nav-card-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-card h3 .nav-card-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nav-card p {
    margin: 0;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.card-meta span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/*!* Кнопки навигации *!*/
/*.nav-buttons {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    gap: 1rem;*/
/*    margin: 2rem 0;*/
/*    padding: 1rem 0;*/
/*    border-top: 1px solid var(--border-color);*/
/*}*/

/*.nav-button {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 0.5rem;*/
/*    padding: 0.75rem 1.25rem;*/
/*    background: white;*/
/*    border: 2px solid var(--primary-color);*/
/*    border-radius: var(--radius-md);*/
/*    color: var(--primary-color);*/
/*    text-decoration: none;*/
/*    font-weight: 600;*/
/*    font-size: 0.9rem;*/
/*    transition: var(--transition);*/
/*    box-shadow: var(--shadow-sm);*/
/*}*/

/*.nav-button::after {*/
/*    display: none;*/
/*}*/

/*.nav-button:hover {*/
/*    background: var(--primary-color);*/
/*    color: white;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: var(--shadow-md);*/
/*}*/

/*.nav-button.prev::before {*/
/*    content: '←';*/
/*    font-size: 1.2rem;*/
/*}*/

/*.nav-button.next::after {*/
/*    content: '→';*/
/*    font-size: 1.2rem;*/
/*}*/

/*.nav-button.back::before {*/
/*    content: '↑';*/
/*    font-size: 1.2rem;*/
/*}*/

/*!* Адаптивность для мобильных *!*/
/*@media (max-width: 768px) {*/
/*    .card-grid {*/
/*        grid-template-columns: 1fr;*/
/*    }*/

/*    .nav-buttons {*/
/*        flex-direction: column;*/
/*    }*/

/*    .breadcrumbs {*/
/*        font-size: 0.8rem;*/
/*        padding: 0.5rem 0.75rem;*/
/*    }*/
/*}*/

/*!* Анимация появления карточек *!*/
/*.nav-card {*/
/*    animation: fadeInUp 0.5s ease-out both;*/
/*}*/

/*.nav-card:nth-child(1) { animation-delay: 0.1s; }*/
/*.nav-card:nth-child(2) { animation-delay: 0.15s; }*/
/*.nav-card:nth-child(3) { animation-delay: 0.2s; }*/
/*.nav-card:nth-child(4) { animation-delay: 0.25s; }*/
/*.nav-card:nth-child(5) { animation-delay: 0.3s; }*/
/*.nav-card:nth-child(6) { animation-delay: 0.35s; }*/
/*.nav-card:nth-child(7) { animation-delay: 0.4s; }*/
/*.nav-card:nth-child(8) { animation-delay: 0.45s; }*/
/*.nav-card:nth-child(9) { animation-delay: 0.5s; }*/

/* ========================================
   СТИЛИ ДЛЯ ТАБЛИЦ С ВЕРТИКАЛЬНЫМИ ГРАНИЦАМИ И ЗЕБРОЙ
   ======================================== */

/* Основные стили для таблиц */
.md-typeset table:not([class]) {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    /*font-size: 0.875rem;*/
    margin: 0.5rem auto;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Заголовок таблицы */
.md-typeset table:not([class]) thead {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
}

/* Ячейки заголовка */
.md-typeset table:not([class]) thead th {
    padding: 12px 16px;
    font-weight: 700;
    text-align: left;
    border-bottom: none;
    white-space: nowrap;
    vertical-align: middle;
    /* Вертикальные границы для заголовков */
    border-right: 1px solid var(--border-color);
}

.md-typeset table:not([class]) thead th:last-child {
    border-right: none;
}

/* Ячейки тела таблицы */
.md-typeset table:not([class]) tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    /*font-size: 0.85rem;*/
    line-height: 1.5;
    vertical-align: top;
    /* Вертикальные границы для ячеек */
    border-right: 1px solid var(--border-color);
}

.md-typeset table:not([class]) tbody td:last-child {
    border-right: none;
}

/* Зебра - четные строки */
.md-typeset table:not([class]) tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Зебра - нечетные строки */
.md-typeset table:not([class]) tbody tr:nth-child(odd) {
    background-color: #fff;
}

/* Эффект при наведении */
.md-typeset table:not([class]) tbody tr {
    transition: var(--transition);
}

.md-typeset table:not([class]) tbody tr:hover {
    background: #f5f5f5;
}

/* Убираем нижнюю границу у последней строки */
.md-typeset table:not([class]) tbody tr:last-child td {
    border-bottom: none;
}

/* Стили для первой колонки (если нужно) */
.md-typeset table:not([class]) tbody td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.md-typeset table:not([class]) tbody td:first-child a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.md-typeset table:not([class]) tbody td:first-child a::after {
    display: none;
}

.md-typeset table:not([class]) tbody td:first-child a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Стили для таблиц в контейнерах с прокруткой */
div[style*="overflow-x"] table:not([class]) {
    border: 1px solid var(--border-color);
}

div[style*="overflow-x"] table:not([class]) thead th {
    border-right: 1px solid var(--border-color);
}

div[style*="overflow-x"] table:not([class]) thead th:last-child {
    border-right: none;
}

div[style*="overflow-x"] table:not([class]) tbody td {
    border-right: 1px solid var(--border-color);
}

div[style*="overflow-x"] table:not([class]) tbody td:last-child {
    border-right: none;
}

/* Зебра для таблиц в контейнерах с прокруткой */
div[style*="overflow-x"] table:not([class]) tbody tr:nth-child(even) {
    background-color: #fafafa;
}

div[style*="overflow-x"] table:not([class]) tbody tr:nth-child(odd) {
    background-color: #fff;
}

div[style*="overflow-x"] table:not([class]) tbody tr:hover {
    background: #f5f5f5;
}