
/* Sidebar Navigation */
.toc-sidebar {
    width: 15vw;
    min-width: 300px;
    background: var(--base-100);
    border-right: 1px solid var(--base-300);
    position: fixed;
    top: 10vh;
    height: 80vh;
    padding: 1.5rem 1rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    overflow: auto;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--base-300);
}

.toc-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--base-content);
}

.toc-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--base-content);
    transition: background-color 0.2s ease;
}

.toc-mobile-toggle:hover {
    background-color: var(--base-200);
}

.toc-content {
    flex: 1;
    overflow-y: auto;
}

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

.toc-item {
    margin: 0;
    position: relative;
}

.toc-item-content {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.25rem;
    color: var(--base-content);
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.toc-toggle:hover {
    background-color: var(--base-200);
    opacity: 1;
}

.toc-toggle.collapsed svg {
    transform: rotate(-90deg);
}

.toc-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--base-content);
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    flex: 1;
}

.toc-link:hover {
    background-color: var(--base-200);
    color: var(--primary);
    border-left-color: var(--primary);
}

.toc-link.active {
    background-color: var(--primary);
    color: var(--primary-content);
    border-left-color: var(--primary-focus);
    font-weight: 600;
}

.toc-children {
    margin-left: 1rem;
    border-left: 1px solid var(--base-300);
    padding-left: 0.5rem;
    margin-top: 0.25rem;
}

.toc-children.collapsed {
    display: none;
}


.toc-item.level-1 .toc-link {
    font-weight: 600;
    font-size: 0.9rem;
}

.toc-item.level-2 .toc-link {
    font-size: 0.85rem;
}

.toc-item.level-3 .toc-link {
    font-size: 0.8rem;
    opacity: 0.9;
}

.toc-item.level-4 .toc-link {
    font-size: 0.75rem;
    opacity: 0.8;
}

.toc-item.level-5,
.toc-item.level-6 {
    .toc-link {
        font-size: 0.75rem;
        opacity: 0.7;
    }
}



/* Responsive Design */
@media (max-width: 768px) {

    .toc-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--base-300);
        padding: 1rem;
    }

    .toc-mobile-toggle {
        display: block;
    }

    .toc-content {
        display: none;
    }

    .toc-sidebar.expanded .toc-content {
        display: block;
    }

    .toc-sidebar.expanded .toc-mobile-toggle svg {
        transform: rotate(180deg);
    }

}

@media (min-width: 769px) and (max-width: 1199px) {
    .toc-sidebar {
        width: 250px;
        min-width: 250px;
    }
}



/* CSS Variables for theme support */
:root {
    --b1: 0 0% 100%;
    --b3: 0 0% 86%;
    --bc: 215 28% 17%;
    --bc-rgb: 55, 65, 81;
    --p: 262 80% 50%;
    --p-rgb: 139, 92, 246;
    --pc: 0 0% 100%;
    --pf: 262 80% 45%;
    --s: 316 70% 50%;
    --sc: 0 0% 100%;
    --su: 158 64% 52%;
    --suc: 0 0% 0%;
    --in: 198 93% 60%;
    --inc: 0 0% 0%;
    --wa: 43 96% 56%;
    --wac: 0 0% 0%;
    --er: 0 91% 71%;
    --erc: 0 0% 0%;
}

@media (prefers-color-scheme: dark) {
    :root {
        --b1: 222 84% 5%;
        --b3: 222 84% 12%;
        --bc: 215 28% 88%;
        --bc-rgb: 209, 213, 219;
        --p: 262 80% 50%;
        --p-rgb: 139, 92, 246;
        --pc: 0 0% 100%;
        --pf: 262 80% 45%;
        --s: 316 70% 50%;
        --sc: 0 0% 100%;
        --su: 158 64% 52%;
        --suc: 0 0% 0%;
        --in: 198 93% 60%;
        --inc: 0 0% 0%;
        --wa: 43 96% 56%;
        --wac: 0 0% 0%;
        --er: 0 91% 71%;
        --erc: 0 0% 0%;
    }
}


* {
    box-sizing: border-box;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
}


.prose {
    max-width: 65ch;
    color: inherit;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: inherit;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary)
}

a:hover {
    color: var(--accent)
}

.prose a {
    color: oklch(var(--p));
    text-decoration: underline;
}

.prose code {
    background-color: oklch(var(--b2));
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background-color: oklch(var(--b2));
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose blockquote {
    border-left: 4px solid oklch(var(--p));
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    opacity: 0.8;
}



table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid var(--primary);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

thead {
    background-color: var(--base-300);
    font-weight: bold;
}

.content-container img {
    max-width: 100%;
    height: auto;
    max-height: 100%; /* или нужное тебе ограничение */
}



/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовые схемы */
    --primary: #3b82f6;
    --primary-focus: #1d4ed8;
    --primary-content: #ffffff;

    --secondary: #10b981;
    --secondary-focus: #059669;
    --secondary-content: #ffffff;

    --accent: #f59e0b;
    --accent-focus: #d97706;
    --accent-content: #ffffff;

    --neutral: #374151;
    --neutral-focus: #1f2937;
    --neutral-content: #f9fafb;

    --base-100: #ffffff;
    --base-200: #f3f4f6;
    --base-300: #e5e7eb;
    --base-content: #1f2937;

    --info: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Размеры */
    --rounded-box: 1rem;
    --rounded-btn: 0.5rem;
    --rounded-badge: 1.9rem;
    --animation-btn: 0.25s;
    --animation-input: 0.2s;
    --btn-text-case: uppercase;
    --btn-focus-scale: 0.95;
    --border-btn: 1px;
    --tab-border: 1px;
    --tab-radius: 0.5rem;
}

[data-theme="dark"] {
    --primary: #97b7ec;
    --primary-focus: #1d4ed8;
    --primary-content: #ffffff;

    --secondary: #10b981;
    --secondary-focus: #059669;
    --secondary-content: #ffffff;

    --accent: #f59e0b;
    --accent-focus: #d97706;
    --accent-content: #ffffff;

    --neutral: #374151;
    --neutral-focus: #1f2937;
    --neutral-content: #f9fafb;

    --base-100: #1f2937;
    --base-200: #374151;
    --base-300: #4b5563;
    --base-content: #f9fafb;

    --info: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    background-color: var(--base-100);
    color: var(--base-content);
    line-height: 1.6;
    min-height: 100vh;
}

/* Утилиты для максимальной ширины */
.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-none {
    max-width: none;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* Утилиты для центрирования */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Утилиты для отступов */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-8 { padding-bottom: 2rem; }

/* Утилиты для отображения */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none !important;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Утилиты для flex */
.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

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

.flex-1 {
    flex: 1 1 0%;
}

/* Утилиты для grid */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Утилиты для текста */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Утилиты для позиционирования */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Утилиты для размеров */
.w-full {
    width: 100%;
}

.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-80 { width: 20rem; }

.h-full {
    height: 100%;
}

.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-0 { height: 0; }
.h-0\.5 { height: 0.125rem; }

.min-h-screen {
    min-height: 100vh;
}

.min-h-full {
    min-height: 100%;
}

.min-h-\[60vh\] {
    min-height: 60vh;
}

.min-h-\[600px\] {
    min-height: 600px;
}

/* Утилиты для цветов */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.text-info {
    color: var(--info);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-base-100 {
    background-color: var(--base-100);
}

.bg-base-200 {
    background-color: var(--base-200);
}

.bg-base-300 {
    background-color: var(--base-300);
}

/* Утилиты для прозрачности */
.opacity-60 {
    opacity: 0.6;
}

.opacity-70 {
    opacity: 0.7;
}

/* Утилиты для скругления */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xs {
    border-radius: 0.125rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Утилиты для границ */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-base-300 {
    border-color: var(--base-300);
}

.border-primary\/50 {
    border-color: rgba(59, 130, 246, 0.5);
}

/* Утилиты для теней */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Утилиты для переходов */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Утилиты для overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Утилиты для cursor */
.cursor-pointer {
    cursor: pointer;
}

.cursor-grab {
    cursor: grab;
}

.cursor-grabbing {
    cursor: grabbing;
}

/* Утилиты для z-index */
.z-10 {
    z-index: 10;
}

/* Адаптивные утилиты */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .lg\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .lg\:p-8 {
        padding: 2rem;
    }

    .lg\:hidden {
        display: none;
    }

    .lg\:stats-horizontal {
        flex-direction: row;
    }

    .lg\:drawer-open {
        grid-template-columns: auto 1fr;
    }

    .lg\:drawer-open .drawer-side {
        grid-column-start: 1;
        grid-row-start: 1;
    }

    .lg\:drawer-open .drawer-content {
        grid-column-start: 2;
        grid-row-start: 1;
    }

    .lg\:drawer-open .drawer-overlay {
        display: none;
    }
}

/* Компоненты */

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-btn);
    height: 3rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: var(--btn-text-case);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: all var(--animation-btn) ease-in-out;
    border: var(--border-btn) solid transparent;
    background-color: var(--neutral);
    color: var(--neutral-content);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.btn:hover {
    background-color: var(--neutral-focus);
    transform: scale(var(--btn-focus-scale));
}

.btn:focus {
    outline: 2px solid var(--neutral);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-content);
}

.btn-primary:hover {
    background-color: var(--primary-focus);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-content);
}

.btn-secondary:hover {
    background-color: var(--secondary-focus);
}

/*.btn-outline {*/
/*    border-color: var(--neutral);*/
/*    background-color: transparent;*/
/*    color: var(--neutral);*/
/*}*/

/*.btn-outline:hover {*/
/*    border-color: var(--neutral-focus);*/
/*    background-color: var(--neutral);*/
/*    color: var(--neutral-content);*/
/*}*/

.btn-ghost {
    border-color: transparent;
    background-color: transparent;
    color: var(--base-content);
}

.btn-ghost:hover {
    background-color: var(--base-200);
}

.btn-lg {
    height: 4rem;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

.btn-square {
    width: 3rem;
    padding: 0;
}

/* Карточки */
.card {
    background-color: var(--base-100);
    border-radius: var(--rounded-box);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--base-content);
    margin-bottom: 0.5rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Бейджи */
.badge {
    display: inline-flex;
    align-items: center;
    height: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--rounded-badge);
    border: 1px solid transparent;
    padding: 0 0.5rem;
    color: var(--base-content);
    background-color: var(--neutral);
}

.badge-primary {
    background-color: var(--primary);
    color: var(--primary-content);
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-content);
}

.badge-accent {
    background-color: var(--accent);
    color: var(--accent-content);
}

.badge-outline {
    border-color: var(--neutral);
    background-color: transparent;
    color: var(--base-content);
}

.badge-lg {
    height: 1.5rem;
    font-size: 0.875rem;
    padding: 0 0.75rem;
}

.badge-sm {
    height: 1rem;
    font-size: 0.625rem;
    padding: 0 0.375rem;
}

.badge-xs {
    height: 0.75rem;
    font-size: 0.5rem;
    padding: 0 0.25rem;
}

/* Навигация */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
    min-height: 4rem;
}

.navbar-start {
    width: 50%;
    justify-content: flex-start;
}

.navbar-end {
    width: 50%;
    justify-content: flex-end;
}

/* Drawer (боковая панель) */
.drawer {
    position: relative;
    display: grid;
    grid-auto-columns: max-content auto;
    width: 100%;
}

.drawer-toggle {
    position: fixed;
    height: 0;
    width: 0;
    appearance: none;
    opacity: 0;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    grid-column-start: 2;
    grid-row-start: 1;
    min-width: 0;
}

.drawer-side {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    grid-column-start: 1;
    grid-row-start: 1;
    display: grid;
    width: 100%;
    height: 100vh;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-template-rows: repeat(1, minmax(0, 1fr));
    align-content: flex-start;
    z-index: 10;
}

.drawer-overlay {
    position: sticky;
    top: 0;
    left: 0;
    cursor: pointer;
    background-color: transparent;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.drawer-side > * {
    grid-column-start: 1;
    grid-row-start: 1;
}

.drawer-side > *:not(.drawer-overlay) {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.drawer-toggle:checked ~ .drawer-side {
    pointer-events: auto;
    visibility: visible;
}

.drawer-toggle:checked ~ .drawer-side .drawer-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.drawer-toggle:checked ~ .drawer-side > *:not(.drawer-overlay) {
    transform: translateX(0);
}

/* Статистика */
.stats {
    display: inline-flex;
    overflow: hidden;
    border-radius: var(--rounded-box);
}

.stats-vertical {
    flex-direction: column;
}

.stats-horizontal {
    flex-direction: row;
}

.stat {
    display: inline-grid;
    width: 100%;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--base-200);
    border-left: 4px solid var(--primary);
}

.stat:not(:first-child) {
    border-left: 1px solid var(--base-300);
}

.stat-title {
    color: var(--base-content);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.6;
}

.stat-value {
    color: var(--base-content);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-desc {
    color: var(--base-content);
    font-size: 0.75rem;
    opacity: 0.6;
}

.stat-figure {
    grid-column-start: 2;
    grid-row-start: 1;
    grid-row-end: 4;
    place-self: center;
}

/* Hero секция */
.hero {
    display: grid;
    width: 100%;
    place-items: center;
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 80rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Footer */
.footer {
    display: grid;
    width: 100%;
    grid-auto-flow: row;
    place-items: start;
    row-gap: 2.5rem;
    column-gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.footer-center {
    place-items: center;
    text-align: center;
}

/* Форма */
.form-control {
    display: flex;
    flex-direction: column;
}

.label {
    display: flex;
    user-select: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.25rem;
}

.label-text {
    color: var(--base-content);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.input {
    flex-shrink: 1;
    height: 3rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 2;
    border: 1px solid var(--base-300);
    border-radius: var(--rounded-btn);
    background-color: var(--base-100);
    color: var(--base-content);
}

.input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.input-bordered {
    border-color: var(--base-300);
}

.input-sm {
    height: 2rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.select {
    display: inline-flex;
    cursor: pointer;
    appearance: none;
    height: 3rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    min-height: 3rem;
    border: 1px solid var(--base-300);
    border-radius: var(--rounded-btn);
    background-color: var(--base-100);
    color: var(--base-content);
    background-image: linear-gradient(45deg, transparent 50%, var(--base-content) 50%), linear-gradient(135deg, var(--base-content) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1px + 50%), calc(100% - 15px) calc(1px + 50%);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.select-bordered {
    border-color: var(--base-300);
}

.select-sm {
    height: 2rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    min-height: 2rem;
}

/* Steps */
.steps {
    display: inline-grid;
    grid-auto-flow: column;
    overflow: hidden;
    overflow-x: auto;
    counter-reset: step;
    grid-auto-columns: 1fr;
}

.steps-vertical {
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
}

.steps-horizontal {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}

.step {
    display: grid;
    place-items: center;
    text-align: center;
    min-width: 4rem;
    counter-increment: step;
}

.step:before {
    content: counter(step);
    z-index: 1;
    position: relative;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--base-300);
    color: var(--base-content);
    font-weight: bold;
}

.step-primary:before {
    background-color: var(--primary);
    color: var(--primary-content);
}

.step-content {
    margin-top: 1rem;
}

/* Loading */
.loading {
    pointer-events: none;
    display: inline-block;
    aspect-ratio: 1;
    width: 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--base-300);
    border-top-color: var(--primary);
    animation: loading-spin 1s linear infinite;
}

.loading-spinner {
    animation: loading-spinner 1s linear infinite;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--base-300);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
}

.loading-lg {
    width: 2.5rem;
    height: 2.5rem;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loading-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Prose (для контента) */
.prose {
    color: var(--base-content);
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7777778;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: var(--base-content);
    font-weight: 600;
    line-height: 1.25;
}

.prose h1 {
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
}

.prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h3 {
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: var(--base-content);
    border-left-width: 0.25rem;
    border-left-color: var(--base-300);
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose code {
    color: var(--base-content);
    background-color: var(--base-200);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-weight: 600;
}

.prose pre {
    color: var(--base-content);
    background-color: var(--base-300);
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 1em;

}