/**
 * Tunnelolite — стиль VT Orbit Nexus (как composerolite)
 * Акцент оранжевый, тёмная тема, карточки и кнопки
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --vt-accent: #fa7f02;
    --vt-accent-light: #ff9b42;
    --vt-accent-rgb: 250, 127, 2;
    --vt-theme: #fa7f02;
    --vt-theme-light: #ff9b42;
    --vt-theme-rgb: 250, 127, 2;
    --vt-darker: #2a2a2b;
    --vt-dark: #434345;
    --vt-gray: rgba(255, 255, 255, 0.7);
    --vt-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--vt-font);
    background: var(--vt-darker);
    color: white;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--vt-theme);
    text-decoration: none;
    transition: color 0.25s ease;
}
a:hover {
    color: var(--vt-theme-light);
}

.cl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ——— Шапка ——— */
.cl-header {
    background: var(--vt-dark);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cl-header-brand {
    display: flex;
    flex-direction: column;
}

.cl-header-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--vt-accent), var(--vt-theme));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cl-header-subtitle {
    font-size: 12px;
    color: var(--vt-gray);
    margin-top: 2px;
}

.cl-menu-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-menu-tab {
    padding: 8px 16px;
    color: var(--vt-gray);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.cl-menu-tab:hover,
.cl-menu-tab.cl-active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.cl-header-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.cl-btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--vt-font);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cl-btn-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cl-btn-primary-header {
    background: var(--vt-theme);
    border: none;
    box-shadow: 0 8px 24px rgba(var(--vt-theme-rgb), 0.35);
}

.cl-btn-primary-header:hover {
    background: var(--vt-theme-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--vt-theme-rgb), 0.45);
}

/* ——— Контент ——— */
.cl-container {
    padding: 40px 20px 80px;
}

.cl-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

/* ——— Блок инструкции ——— */
.cl-instruction {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.cl-instruction:hover {
    border-color: rgba(var(--vt-theme-rgb), 0.25);
}

.cl-instruction-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(var(--vt-theme-rgb), 0.06), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.cl-instruction-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--vt-theme), var(--vt-theme-light));
    border-radius: 4px 0 0 0;
}

.cl-instruction-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.cl-instruction-title code {
    font-size: 13px;
    font-weight: 500;
    color: var(--vt-gray);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
}

.cl-instruction-body {
    padding: 24px;
}

.cl-instruction-code {
    background: rgba(0, 0, 0, 0.45);
    padding: 20px 24px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--vt-theme);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    white-space: pre;
}

.cl-instruction-code .cl-highlight {
    color: var(--vt-theme-light);
}

.cl-instruction-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--vt-gray);
}

.cl-instruction-note code {
    color: var(--vt-theme);
    background: rgba(var(--vt-theme-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* ——— Панель ——— */
.cl-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.cl-panel:hover {
    border-color: rgba(var(--vt-theme-rgb), 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(var(--vt-theme-rgb), 0.08);
}

.cl-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(var(--vt-theme-rgb), 0.08), rgba(var(--vt-theme-rgb), 0.04));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.cl-panel-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--vt-theme), var(--vt-theme-light));
    border-radius: 4px 0 0 0;
}

.cl-panel-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.cl-panel-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(var(--vt-theme-rgb), 0.2);
    border-radius: 10px;
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.cl-panel-body {
    padding: 24px;
}

.cl-panel-text {
    font-size: 15px;
    color: var(--vt-gray);
    line-height: 1.6;
}

/* ——— Футер ——— */
.cl-footer {
    background: var(--vt-dark);
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--vt-gray);
}

.cl-footer-copyright {
    margin-left: auto;
}

/* ——— Список шагов ——— */
.cl-steps {
    list-style: none;
    counter-reset: step;
}

.cl-steps li {
    position: relative;
    padding-left: 44px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--vt-gray);
    line-height: 1.6;
}

.cl-steps li:last-child {
    margin-bottom: 0;
}

.cl-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: rgba(var(--vt-theme-rgb), 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vt-theme);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-steps li strong {
    color: white;
}

@media (max-width: 768px) {
    .cl-header { padding: 12px 16px; }
    .cl-header-title { font-size: 18px; }
    .cl-header-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
    .cl-container { padding: 24px 16px 60px; }
}
