/**
 * Базовые стили VT Orbit Nexus
 * Основной цвет (--vt-accent) — всегда оранжевый: кнопки, главный заголовок.
 * Тема (--vt-theme) — в theme.css: только баннер hero и элементы (подзаголовки, иконки, теги).
 */
: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-green: #73BA68;
    --vt-light-green: #8ed184;
    --vt-dark: #434345;
    --vt-darker: #2a2a2b;
    --vt-gray: rgba(255, 255, 255, 0.7);
    --vt-light: rgba(255, 255, 255, 0.9);
    --vt-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--vt-accent-rgb), 0.5) var(--vt-dark);
}

/* Полосы прокрутки — в стиле проекта, тонкие (WebKit) */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: var(--vt-dark);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(var(--vt-accent-rgb), 0.5);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--vt-accent-rgb), 0.7);
}

*::-webkit-scrollbar-corner {
    background: var(--vt-dark);
}

body {
    font-family: var(--vt-font);
    background: var(--vt-darker);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ссылки — цвет темы, единый стиль по проекту */
a {
    color: var(--vt-theme);
    text-decoration: none;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
a:hover {
    color: var(--vt-theme-light);
    text-decoration: underline;
}
a:focus-visible {
    outline: 2px solid var(--vt-theme);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки — однотонный цвет темы */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--vt-theme);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(var(--vt-theme-rgb), 0.35);
}

.btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    background: var(--vt-theme-light);
    box-shadow: 0 12px 32px rgba(var(--vt-theme-rgb), 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.btn-secondary:hover {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 12px 20px;
    font-size: 14px;
}

/* Акцентный текст секций — цвет темы (баннер, элементы) */
.gradient-text {
    color: var(--vt-theme);
}

/* Главный заголовок hero — два цвета: основной + тема */
.hero .hero-title .gradient-text {
    background: linear-gradient(135deg, var(--vt-accent), var(--vt-theme));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Секции */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: rgba(0, 0, 0, 0.3);
}

.section-alt {
    background: rgba(0, 0, 0, 0.2);
}

/* Блок заголовка секции (общий) */
.block-title {
    text-align: center;
    margin-bottom: 50px;
}

.block-title .block-title__heading {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.block-title .block-title__desc {
    font-size: 18px;
    color: var(--vt-gray);
    max-width: 600px;
    margin: 0 auto;
}

.block-title--sm .block-title__heading {
    font-size: 36px;
    font-weight: 700;
}

/* Кнопка «Назад» на страницах manual */
.manual-back-bar {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}
.manual-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vt-theme);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, gap 0.2s ease;
}
.manual-back-link:hover {
    color: var(--vt-theme-light);
    gap: 14px;
}
.manual-back-link svg {
    flex-shrink: 0;
}

/* Оглавление manual-страниц */
.manual-toc {
    list-style: none;
    line-height: 2;
}

.manual-toc a {
    color: var(--vt-theme);
    text-decoration: none;
}

/* Кнопки CTA (крупнее) */
.btn-cta {
    font-size: 18px;
    padding: 18px 40px;
}

/* Алиас для блоков заголовка (serverolite, nodeolite и др.) */
.block-title-calendar {
    text-align: center;
    margin-bottom: 50px;
}

.block-title-calendar .block-title-calendar__heading {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.block-title-calendar .block-title-calendar__desc {
    font-size: 18px;
    color: var(--vt-gray);
    max-width: 600px;
    margin: 0 auto;
}

.block-title-calendar--sm .block-title-calendar__heading {
    font-size: 36px;
    font-weight: 700;
}

.block-title-calendar__note {
    font-size: 14px;
    color: var(--vt-accent);
    max-width: 560px;
    margin: 16px auto 0;
}

.download-card__btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.download-card__btn--sm {
    font-size: 14px;
}

.download-card__notes {
    margin-top: auto;
    padding-top: 12px;
}

.download-card__note {
    color: var(--vt-accent);
    font-size: 14px;
    font-weight: 600;
}
.download-card__note--mt {
    margin-top: 8px;
}
.download-card__note--muted {
    color: var(--vt-gray);
    font-size: 13px;
    font-weight: normal;
}
.download-card__note--muted strong {
    color: white;
}

/* Hero — фон баннера от темы */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 50% 50%, rgba(var(--vt-theme-rgb), 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(var(--vt-theme-rgb), 0.08) 0%, transparent 40%),
                var(--vt-darker);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(circle at 20% 30%, rgba(var(--vt-theme-rgb), 0.2) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(var(--vt-theme-rgb), 0.1) 0%, transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: vt-fadeInUp 1s ease-out;
}

/* Баннер «VT Orbit Nexus» — всегда основной цвет */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(var(--vt-accent-rgb), 0.2);
    border: 1px solid rgba(var(--vt-accent-rgb), 0.4);
    border-radius: 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.hero-badge span {
    color: var(--vt-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--vt-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Орбиты (декорация) */
.orbit-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    pointer-events: none;
    opacity: 0.3;
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(var(--vt-theme-rgb), 0.3);
    border-radius: 50%;
}

.orbit-1 { inset: 0; animation: vt-orbit-rotate 20s linear infinite; }
.orbit-2 { inset: 80px; border-color: rgba(var(--vt-theme-rgb), 0.25); animation: vt-orbit-reverse 25s linear infinite; }
.orbit-3 { inset: 160px; border-color: rgba(255, 255, 255, 0.1); animation: vt-orbit-rotate 15s linear infinite; }

.satellite {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--vt-theme);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(var(--vt-theme-rgb), 0.5);
    animation: vt-float 6s ease-in-out infinite;
}

/* Спутники — 4–7-е дети (1–3 — орбиты) */
.satellite:nth-child(4) { top: 10%; left: 10%; }
.satellite:nth-child(5) { top: 15%; right: 10%; animation-delay: 1s; background: var(--vt-theme); }
.satellite:nth-child(6) { bottom: 20%; left: 15%; animation-delay: 2s; background: var(--vt-theme-light); }
.satellite:nth-child(7) { bottom: 15%; right: 20%; animation-delay: 3s; }

/* Анимации */
@keyframes vt-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes vt-orbit-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes vt-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Карточки особенностей */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--vt-theme-rgb), 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--vt-theme-rgb), 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--vt-theme);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--vt-gray);
    font-size: 15px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.tech-item {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 500;
    color: var(--vt-theme);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(var(--vt-theme-rgb), 0.1);
    border-color: var(--vt-theme);
    transform: translateY(-2px);
}

/* Блоки «Установка и запуск» / «Быстрый старт» — общие стили */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--vt-theme);
    box-shadow: 0 12px 32px rgba(var(--vt-theme-rgb), 0.25);
}

.download-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--vt-theme);
}

.download-card p {
    color: var(--vt-gray);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.download-card .code-block {
    margin-bottom: 20px;
}

.download-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.instruction-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--vt-theme-rgb), 0.4);
}

.instruction-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--vt-accent);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.instruction-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.instruction-desc {
    color: var(--vt-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.instruction-note {
    margin-top: 15px;
    font-size: 13px;
    color: var(--vt-gray);
}

.instruction-card .code-block {
    margin-bottom: 0;
}

.download-card__checklist {
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vt-theme);
    line-height: 1.6;
}

/* CTA-секция (общая для главных страниц модулей) */
.cta-section {
    background: linear-gradient(135deg, rgba(var(--vt-theme-rgb), 0.1), rgba(var(--vt-theme-rgb), 0.1));
    border-radius: 30px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 100px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
}
.cta-subtitle {
    font-size: 18px;
    color: var(--vt-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Hero-section (для manual и простых страниц) */
.hero-section {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 60px;
}

.hero-section .hero-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
}

.hero-section .hero-subtitle {
    font-size: 18px;
    max-width: 700px;
}

/* Контент-секции (manual) */
.content-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(var(--vt-theme-rgb), 0.35);
}

.subsection {
    margin-bottom: 40px;
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--vt-theme);
}

.subsection-content {
    color: var(--vt-gray);
    line-height: 1.8;
}

/* Блоки кода и подсказок */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--vt-theme);
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.code-block code {
    color: var(--vt-theme);
    white-space: pre;
}

.info-box {
    background: rgba(var(--vt-theme-rgb), 0.1);
    border-left: 4px solid var(--vt-theme);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-box strong {
    color: var(--vt-theme);
    display: block;
    margin-bottom: 10px;
}

.warning-box {
    background: rgba(var(--vt-accent-rgb), 0.1);
    border-left: 4px solid var(--vt-accent);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box strong {
    color: var(--vt-accent);
    display: block;
    margin-bottom: 10px;
}

/* Контент manual: списки и отступы */
.manual-content ul {
    margin-left: 20px;
    line-height: 2;
}
.manual-content ul ul {
    margin-top: 10px;
}
.manual-content .info-box,
.manual-content .warning-box {
    margin-top: 20px;
}
.manual-content p {
    margin-top: 15px;
}
.manual-content p.mt-20 {
    margin-top: 20px;
}

/* CTA-блок в конце manual (вернуться на главную) */
.content-section-cta {
    text-align: center;
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    margin-top: 60px;
}
.content-section-cta .section-title {
    margin-bottom: 20px;
}
.content-section-cta .subsection-content,
.content-section-cta p {
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--vt-gray);
}
.content-section-cta .btn {
    font-size: 16px;
    padding: 16px 32px;
}

.mb-60 { margin-bottom: 60px; }
.mt-30 { margin-top: 30px; }

.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    padding-left: 50px;
    position: relative;
}

/* Список типов (manual) */
.node-types {
    list-style: none;
}

.node-types li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--vt-gray);
}

.node-types li:last-child {
    border-bottom: none;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: rgba(var(--vt-accent-rgb), 0.2);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-title { font-size: 48px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; justify-content: center; }
    .section { padding: 60px 0; }
    .hero-section .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .block-title .block-title__heading { font-size: 36px; }
    .block-title-calendar .block-title-calendar__heading { font-size: 36px; }
    .cta-section { padding: 40px 20px; }
    .cta-title { font-size: 36px; }
    .download-grid,
    .instructions-grid { grid-template-columns: 1fr; }
}

/* Подвал (общий layout) — в base, чтобы стили всегда применялись */
.vt-footer {
    font-family: var(--vt-font);
    background: var(--vt-dark);
    color: white;
    padding: 32px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vt-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.vt-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vt-footer__logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--vt-accent), var(--vt-accent-light));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.vt-footer__name {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.vt-footer__tagline {
    font-size: 12px;
    color: var(--vt-gray);
}

.vt-footer__brand-accent {
    color: var(--vt-accent);
    font-weight: 700;
}

.vt-footer__copy {
    font-size: 14px;
    color: var(--vt-gray);
}

.vt-footer__copy a {
    color: var(--vt-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.vt-footer__copy a:hover {
    color: var(--vt-accent-light);
}

@media (max-width: 600px) {
    .vt-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
