/* ============================================ */
/* ОСНОВНЫЕ СТИЛИ */
/* ============================================ */

:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border: #334155;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================ */
/* НАВИГАЦИЯ */
/* ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    font-size: 36px;
    line-height: 1;
}

.nav-title {
    font-weight: 700;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* ============================================ */
/* КНОПКИ */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
}

/* ============================================ */
/* ГЕРОЙ */
/* ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.hero-glow-1 {
    top: -200px;
    right: -200px;
    background: var(--accent);
}

.hero-glow-2 {
    bottom: -200px;
    left: -200px;
    background: #8B5CF6;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--bg-secondary);
    border-radius: 40px;
    border: 3px solid var(--border);
    padding: 12px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-placeholder {
    text-align: center;
    padding: 40px;
}

.hero-float {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}

.hero-float-1 {
    top: 20%;
    left: -40px;
    animation-delay: 0s;
}

.hero-float-2 {
    bottom: 30%;
    right: -30px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================ */
/* СЕКЦИИ */
/* ============================================ */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ============================================ */
/* ВОЗМОЖНОСТИ */
/* ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: color-mix(in srgb, var(--icon-color, #3B82F6) 15%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: var(--icon-color, #3B82F6);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
}

.feature-list li i {
    color: var(--success);
    font-size: 12px;
}

.feature-list li.disabled {
    color: var(--text-muted);
}

.feature-list li.disabled i {
    color: var(--text-muted);
}

/* ============================================ */
/* ТАБЫ */
/* ============================================ */

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 4px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.tab.active {
    background: var(--accent);
    color: white;
}

/* ============================================ */
/* ШАГИ УСТАНОВКИ */
/* ============================================ */

.steps-vertical {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ============================================ */
/* БЛОКИ КОДА */
/* ============================================ */

.code-block {
    background: #1a1a2e;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-muted);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #e0e0e0;
}

.install-note {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================ */
/* OS TABS */
/* ============================================ */

.os-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.os-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.os-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================ */
/* ТАРИФЫ */
/* ============================================ */

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    font-size: 14px;
    color: var(--text-secondary);
}

.save-badge {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 28px;
    transition: var(--transition);
}

.slider:before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    bottom: 2px;
    background: var(--accent);
    border-radius: 50%;
    transition: var(--transition);
}

input:checked+.slider {
    border-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.pricing-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-price {
    margin-top: 16px;
}

.price-value {
    font-size: 42px;
    font-weight: 800;
}

.price-currency {
    font-size: 18px;
    color: var(--text-secondary);
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li i {
    color: var(--success);
    font-size: 12px;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

.pricing-compare {
    text-align: center;
    margin-top: 32px;
}

/* ============================================ */
/* FAQ */
/* ============================================ */

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-muted);
}

.faq-question.open i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 20px;
    display: none;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.faq-answer.open {
    display: block;
}

/* ============================================ */
/* ПОДДЕРЖКА */
/* ============================================ */

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.support-card:hover {
    border-color: var(--accent);
}

.support-card i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.support-card h3 {
    margin-bottom: 8px;
}

.support-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.support-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* ============================================ */
/* ФУТЕР */
/* ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-links h4 {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================ */
/* ДОПОЛНИТЕЛЬНЫЕ СТРАНИЦЫ */
/* ============================================ */

.page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.page h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.page h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
}

.page h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.page ul,
.page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.page strong {
    color: var(--text-primary);
}

.page a {
    color: var(--accent);
    text-decoration: none;
}

.page a:hover {
    text-decoration: underline;
}

.page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.page .back-link:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ============================================ */
/* КНОПКА НАВЕРХ */
/* ============================================ */

.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================ */
/* АДАПТИВ */
/* ============================================ */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .page h1 {
        font-size: 32px;
    }
}

/* ============================================ */
/* БЕЙДЖ ВЕРСИИ ТАРИФА */
/* ============================================ */

.tier-version-badge {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* ============================================ */
/* ДОРОЖНАЯ КАРТА (ROADMAP) */
/* ============================================ */

.roadmap {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a1020 100%);
    position: relative;
    overflow: hidden;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.05;
    pointer-events: none;
}

/* Сводка */
.roadmap-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.summary-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}

.summary-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.summary-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Навигация по месяцам */
.timeline-months {
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.timeline-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tm-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.tm-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tm-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Таймлайн */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}

.timeline-item.hidden {
    display: none;
}

.tl-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 32px;
}

.tl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 2;
    margin-top: 24px;
    box-shadow: 0 0 0 3px currentColor;
}

.tl-line {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 24px);
    background: var(--border);
}

.tl-line-end {
    background: transparent;
}

/* Цвета точек по тарифам */
.tl-dot-free {
    background: #22C55E;
    color: rgba(34, 197, 94, 0.3);
}

.tl-dot-pro {
    background: #3B82F6;
    color: rgba(59, 130, 246, 0.3);
}

.tl-dot-proplus {
    background: #8B5CF6;
    color: rgba(139, 92, 246, 0.3);
}

.tl-dot-business {
    background: #F59E0B;
    color: rgba(245, 158, 11, 0.3);
}

.tl-dot-enterprise {
    background: #EF4444;
    color: rgba(239, 68, 68, 0.3);
}

.tl-dot-agency {
    background: #EC4899;
    color: rgba(236, 72, 153, 0.3);
}

.tl-dot-team {
    background: #06B6D4;
    color: rgba(6, 182, 212, 0.3);
}

/* Карточки релизов */
.tl-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: var(--transition);
}

.tl-card:hover {
    border-color: var(--border);
    transform: translateX(4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

/* Цвета левой полоски по тарифам */
.tl-card-free {
    border-left-color: #22C55E;
}

.tl-card-free:hover {
    box-shadow: -4px 0 30px -10px rgba(34, 197, 94, 0.2);
}

.tl-card-pro {
    border-left-color: #3B82F6;
}

.tl-card-pro:hover {
    box-shadow: -4px 0 30px -10px rgba(59, 130, 246, 0.2);
}

.tl-card-proplus {
    border-left-color: #8B5CF6;
}

.tl-card-proplus:hover {
    box-shadow: -4px 0 30px -10px rgba(139, 92, 246, 0.2);
}

.tl-card-business {
    border-left-color: #F59E0B;
}

.tl-card-business:hover {
    box-shadow: -4px 0 30px -10px rgba(245, 158, 11, 0.2);
}

.tl-card-enterprise {
    border-left-color: #EF4444;
}

.tl-card-enterprise:hover {
    box-shadow: -4px 0 30px -10px rgba(239, 68, 68, 0.2);
}

.tl-card-agency {
    border-left-color: #EC4899;
}

.tl-card-agency:hover {
    box-shadow: -4px 0 30px -10px rgba(236, 72, 153, 0.2);
}

.tl-card-team {
    border-left-color: #06B6D4;
}

.tl-card-team:hover {
    box-shadow: -4px 0 30px -10px rgba(6, 182, 212, 0.2);
}

.tl-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tl-version {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.tl-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Бейдж тарифа в карточке — новый стиль из index.md */
.tl-tier-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 40px;
    background: #0F172A;
    border: 1px solid #334155;
}

.tl-tier-badge.free {
    color: #22C55E;
    border-color: #22C55E44;
}

.tl-tier-badge.pro {
    color: #3B82F6;
    border-color: #3B82F644;
}

.tl-tier-badge.proplus {
    color: #8B5CF6;
    border-color: #8B5CF644;
}

.tl-tier-badge.team {
    color: #06B6D4;
    border-color: #06B6D444;
}

.tl-tier-badge.business {
    color: #F59E0B;
    border-color: #F59E0B44;
}

.tl-tier-badge.enterprise {
    color: #EF4444;
    border-color: #EF444444;
}

.tl-tier-badge.agency {
    color: #EC4899;
    border-color: #EC489944;
}

/* Старый стиль tl-tier больше не используется */
.tl-tier {
    display: none;
}

.tl-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tl-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tl-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-feature {
    font-size: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
}

/* Легенда */
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.free {
    background: #22C55E;
}

.legend-dot.pro {
    background: #3B82F6;
}

.legend-dot.proplus {
    background: #8B5CF6;
}

.legend-dot.business {
    background: #F59E0B;
}

.legend-dot.enterprise {
    background: #EF4444;
}

.legend-dot.agency {
    background: #EC4899;
}

.legend-dot.team {
    background: #06B6D4;
}

/* ============================================ */
/*
 * ============================================
 * ФАЗЫ ТАЙМЛАЙНА (разрывы между тарифами)
 * ============================================
 */

.tl-phase {
    position: relative;
    margin: 48px 0 32px;
    display: flex;
    justify-content: center;
}

.tl-phase:first-child {
    margin-top: 0;
}

/* Градиентная линия фазы — декоративный разделитель */
.tl-phase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #334155, transparent);
    transform: translateY(-50%);
}

.tl-phase-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0F172A;
    padding: 10px 28px;
    border: 1px solid #334155;
    border-radius: 60px;
    font-size: 14px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    justify-content: center;
}

.tl-phase-icon {
    font-size: 20px;
    line-height: 1;
}

.tl-phase-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.tl-phase-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
}

.tl-phase-period {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .tl-phase-label {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 16px;
        gap: 6px;
        border-radius: 16px;
        text-align: center;
    }

    .tl-phase-period {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        gap: 12px;
    }

    .tl-marker {
        width: 24px;
    }

    .tl-dot {
        width: 12px;
        height: 12px;
        margin-top: 20px;
    }

    .tl-card {
        padding: 16px;
    }

    .tl-title {
        font-size: 16px;
    }

    .tl-header {
        gap: 8px;
    }

    .tl-tier {
        margin-left: 0;
    }

    .timeline-legend {
        gap: 12px;
    }
}