/* ==========================================
   rNodes Landing Page - Premium Design
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #F3AB26 0%, #e67e22 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(180deg, #FFE7D6 0%, #FBEFF4 52%, #F4F1FF 100%);
    
    --primary: #FF6A3D;
    --primary-light: #FF8A5C;
    --primary-dark: #E5532A;
    --secondary: #FF8A3D;
    --accent: #f093fb;
    
    --bg-dark: #FFF8F2;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --text-primary: #14151A;
    --text-secondary: #3B3E48;
    --text-muted: #737783;
    
    --border-color: rgba(20, 21, 26, 0.1);
    --border-glow: rgba(255, 106, 61, 0.28);
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 1px 2px rgba(20, 21, 26, 0.04), 0 18px 40px -14px rgba(40, 30, 60, 0.18);
    --shadow-lg: 0 2px 4px rgba(20, 21, 26, 0.05), 0 30px 60px -20px rgba(40, 30, 60, 0.22);
    --shadow-glow: 0 0 0 1px rgba(255, 106, 61, 0.12);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Animated Background
   ========================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Prevent horizontal overflow */
* {
    max-width: 100%;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    opacity: 0.3;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    opacity: 0.25;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-rag {
    color: #14151A;
}

.logo-nodes {
    color: #FF8A3D;
}

/* Legacy support */
.logo-text .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
}

/* Hide mobile buttons on desktop */
.mobile-nav-actions {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-medium);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* ── Выпадающие группы навбара (Возможности / rBase) ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Заголовок группы — кнопка, не ссылка: открывает список, сам никуда не ведёт */
.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-caret {
    opacity: 0.55;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 180px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(40, 30, 60, 0.126);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

/* невидимый «мостик», чтобы hover не рвался между пунктом и меню */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-item {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
    background: rgba(255, 106, 61, 0.14);
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Dropdown Login */
.dropdown-login {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(40, 30, 60, 0.108);
    border-radius: var(--radius-md);
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.2s;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.dropdown-login.open .dropdown-menu {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 138, 61, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 138, 61, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(20, 21, 26, 0.1);
}

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

.btn-block {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 240px 0 60px;
    position: relative;
}

.hero-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    box-sizing: border-box;
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title.hero-title-sm {
    font-size: 2.75rem;
    line-height: 1.15;
}

.title-line {
    display: block;
}

.title-gradient {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

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

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

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

.stat {
    text-align: left;
}

.stat-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 5;
}

.hero-mockup {
    position: relative;
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 106, 61, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.mockup-frame {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(20, 21, 26, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:last-child { background: #28c840; }

.mockup-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Node Tree Animation */
.node-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
}

.tree-node:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: scale(1.02);
}

.main-node {
    background: var(--primary-gradient);
    border: none;
}

.main-node:hover {
    background: var(--primary-gradient);
}

.main-node[data-pulse] {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 106, 61, 0); }
}

.node-icon {
    font-size: 1.25rem;
}

.node-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.tree-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.tree-branches {
    display: flex;
    gap: 16px;
}

.branch-node {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
}

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

/* AI Typing Animation */
.ai-typing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 16px;
    background: rgba(255, 106, 61, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 106, 61, 0.2);
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.typing-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: floatCard 6s ease-in-out infinite;
}

.card-icon {
    font-size: 1.25rem;
}

.card-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    left: -40px;
    animation-delay: -2s;
}

.card-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Indicator */
.hero-scroll {
    text-align: center;
    margin-top: auto;
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    opacity: 0.6;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ==========================================
   Mockup Slideshow
   ========================================== */
.mockup-content {
    position: relative;
    overflow: hidden;
}

.mockup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.mockup-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
}

.mockup-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(20, 21, 26, 0.5);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: var(--primary-light);
    width: 24px;
    border-radius: 4px;
}

.slide-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 16px;
    background: rgba(255, 106, 61, 0.1);
    border: 1px solid rgba(255, 106, 61, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.label-icon {
    font-size: 1rem;
}

/* Slide 2: Gantt Chart */
.gantt-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gantt-header {
    display: grid;
    grid-template-columns: 100px 1fr;
    padding: 12px 16px;
    background: rgba(255, 106, 61, 0.1);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.gantt-months {
    display: flex;
    justify-content: space-around;
}

.gantt-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.gantt-row:last-child {
    border-bottom: none;
}

.gantt-task {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.gantt-bar {
    height: 20px;
    border-radius: 4px;
    margin-left: var(--start);
    width: var(--width);
    animation: ganttGrow 1s ease forwards;
    transform-origin: left;
}

@keyframes ganttGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.gantt-blue { background: linear-gradient(90deg, #FF6A3D, #F2557A); }
.gantt-purple { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.gantt-green { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.gantt-orange { background: linear-gradient(90deg, #FF8A3D, #FF6A3D); }

/* Slide 3: Table */
.table-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    animation: tableRowFade 0.5s ease forwards;
    opacity: 0;
}

.table-row:nth-child(1) { animation-delay: 0s; }
.table-row:nth-child(2) { animation-delay: 0.1s; }
.table-row:nth-child(3) { animation-delay: 0.2s; }
.table-row:nth-child(4) { animation-delay: 0.3s; }

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

.table-row:last-child {
    border-bottom: none;
}

.table-header-row {
    background: rgba(255, 106, 61, 0.1);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.table-row .num {
    color: var(--text-primary);
    font-family: 'SF Mono', monospace;
}

.positive {
    color: #2ecc71;
    font-weight: 600;
}

.negative {
    color: #e74c3c;
    font-weight: 600;
}

/* Slide 4: Chart */
.chart-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.chart-container {
    position: relative;
    height: 150px;
    margin-bottom: 10px;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    padding: 0 10px;
}

.chart-bar {
    width: 30px;
    height: var(--height);
    background: linear-gradient(180deg, #FF6A3D, #F2557A);
    border-radius: 4px 4px 0 0;
    animation: chartBarGrow 1s ease forwards;
    transform-origin: bottom;
}

@keyframes chartBarGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.chart-bar:nth-child(1) { animation-delay: 0s; }
.chart-bar:nth-child(2) { animation-delay: 0.1s; }
.chart-bar:nth-child(3) { animation-delay: 0.2s; }
.chart-bar:nth-child(4) { animation-delay: 0.3s; }
.chart-bar:nth-child(5) { animation-delay: 0.4s; }
.chart-bar:nth-child(6) { animation-delay: 0.5s; }

.chart-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.chart-line svg {
    width: 100%;
    height: 100%;
}

.chart-line path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 2s ease forwards 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Scatter Chart */
.scatter-chart {
    width: 100%;
    height: 100%;
}

.scatter-chart svg {
    width: 100%;
    height: 100%;
}

/* Линия тренда */
.scatter-chart .trend-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawTrendLine 1.5s ease forwards 0.2s;
}

@keyframes drawTrendLine {
    to { stroke-dashoffset: 0; }
}

.scatter-chart circle[fill="#667eea"],
.scatter-chart circle[fill="#F3AB26"],
.scatter-chart circle[fill="#10b981"],
.scatter-chart circle[fill="#ec4899"] {
    opacity: 0;
    animation: scatterAppear 0.4s ease forwards;
}

/* Анимация появления точек с задержкой */
.scatter-chart circle[fill="#667eea"]:nth-of-type(1) { animation-delay: 0.1s; }
.scatter-chart circle[fill="#667eea"]:nth-of-type(2) { animation-delay: 0.15s; }
.scatter-chart circle[fill="#667eea"]:nth-of-type(3) { animation-delay: 0.2s; }
.scatter-chart circle[fill="#667eea"]:nth-of-type(4) { animation-delay: 0.25s; }
.scatter-chart circle[fill="#667eea"]:nth-of-type(5) { animation-delay: 0.3s; }

.scatter-chart circle[fill="#F3AB26"]:nth-of-type(1) { animation-delay: 0.35s; }
.scatter-chart circle[fill="#F3AB26"]:nth-of-type(2) { animation-delay: 0.4s; }
.scatter-chart circle[fill="#F3AB26"]:nth-of-type(3) { animation-delay: 0.45s; }
.scatter-chart circle[fill="#F3AB26"]:nth-of-type(4) { animation-delay: 0.5s; }
.scatter-chart circle[fill="#F3AB26"]:nth-of-type(5) { animation-delay: 0.55s; }

.scatter-chart circle[fill="#10b981"]:nth-of-type(1) { animation-delay: 0.6s; }
.scatter-chart circle[fill="#10b981"]:nth-of-type(2) { animation-delay: 0.65s; }
.scatter-chart circle[fill="#10b981"]:nth-of-type(3) { animation-delay: 0.7s; }
.scatter-chart circle[fill="#10b981"]:nth-of-type(4) { animation-delay: 0.75s; }
.scatter-chart circle[fill="#10b981"]:nth-of-type(5) { animation-delay: 0.8s; }

.scatter-chart circle[fill="#ec4899"]:nth-of-type(1) { animation-delay: 0.85s; }
.scatter-chart circle[fill="#ec4899"]:nth-of-type(2) { animation-delay: 0.9s; }
.scatter-chart circle[fill="#ec4899"]:nth-of-type(3) { animation-delay: 0.95s; }
.scatter-chart circle[fill="#ec4899"]:nth-of-type(4) { animation-delay: 1s; }

@keyframes scatterAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

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

/* Slide 5: Image Generation */
.image-gen-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gen-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.prompt-icon {
    font-size: 1.1rem;
}

.prompt-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    white-space: nowrap;
    animation: typePrompt 2s steps(40) forwards;
    width: 0;
}

@keyframes typePrompt {
    to { width: 100%; }
}

.gen-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gen-images.kotik-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.kotik-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-md);
    object-fit: contain;
    animation: kotikAppear 0.8s ease forwards;
    opacity: 0;
    box-shadow: 0 4px 20px rgba(255, 106, 61, 0.3);
}

@keyframes kotikAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gen-image {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gen-1 { background: linear-gradient(135deg, #FFFFFF, #FFFFFF, #FFFFFF); }
.gen-2 { background: linear-gradient(135deg, #FFFFFF, #203a43, #2c5364); }
.gen-3 { background: linear-gradient(135deg, #FFFFFF, #FFFFFF, #FFFFFF); }
.gen-4 { background: linear-gradient(135deg, #203a43, #FFFFFF, #FFFFFF); }

.gen-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

.gen-image:nth-child(1) .gen-shimmer { animation-delay: 0s; }
.gen-image:nth-child(2) .gen-shimmer { animation-delay: 0.3s; }
.gen-image:nth-child(3) .gen-shimmer { animation-delay: 0.6s; }
.gen-image:nth-child(4) .gen-shimmer { animation-delay: 0.9s; }

.gen-cat {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0;
    animation: catAppear 0.5s ease forwards;
    filter: drop-shadow(0 0 10px rgba(255, 106, 61, 0.5));
}

.gen-image:nth-child(1) .gen-cat { animation-delay: 0.5s; }
.gen-image:nth-child(2) .gen-cat { animation-delay: 1s; }
.gen-image:nth-child(3) .gen-cat { animation-delay: 1.5s; }
.gen-image:nth-child(4) .gen-cat { animation-delay: 2s; }

@keyframes catAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.gen-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.gen-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    animation: progressGrow 3s ease-in-out infinite;
}

@keyframes progressGrow {
    0% { width: 0; }
    50% { width: 80%; }
    100% { width: 100%; }
}

/* ==========================================
   Section Styles
   ========================================== */
.section-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ==========================================
   Features Section
   ========================================== */
.features {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-card.featured {
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.1) 0%, rgba(242, 85, 122, 0.1) 100%);
    border-color: rgba(255, 106, 61, 0.3);
}

.feature-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    padding: 6px 16px;
    background: var(--primary-gradient);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon .icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    opacity: 0.15;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-light);
    position: relative;
    z-index: 1;
}

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

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 106, 61, 0.05) 50%, transparent 100%);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 300px;
    gap: 40px;
    align-items: center;
    padding: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium);
}

.step:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.step-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Upload Animation */
.upload-animation {
    position: relative;
    width: 200px;
    height: 150px;
}

.upload-icon {
    position: absolute;
    font-size: 2rem;
    animation: uploadFloat 3s ease-in-out infinite;
}

.upload-icon:nth-child(1) { left: 10%; top: 0; animation-delay: 0s; }
.upload-icon:nth-child(2) { left: 40%; top: 10%; animation-delay: 0.5s; }
.upload-icon:nth-child(3) { left: 70%; top: 0; animation-delay: 1s; }

.upload-target {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-target svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

@keyframes uploadFloat {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(60px); opacity: 0.3; }
}

/* Chat Animation */
.chat-animation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.chat-bubble {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    max-width: 80%;
}

.chat-bubble.user {
    background: var(--primary-gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDots 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Result Animation */
.result-animation {
    width: 100%;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(40, 200, 64, 0.1);
    border-bottom: 1px solid rgba(40, 200, 64, 0.2);
    font-weight: 600;
}

.result-icon {
    font-size: 1.25rem;
}

.result-items {
    padding: 16px 20px;
}

.result-item {
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin: 0 auto;
}

/* ==========================================
   rBase Section
   ========================================== */
.rbase-section {
    padding: var(--section-padding) 0;
}

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

.rbase-content .section-badge,
.rbase-content .section-title,
.rbase-content .section-description {
    text-align: left;
}

.rbase-content .section-title {
    font-size: 2.25rem;
}

.rbase-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.rbase-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.rbase-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.rbase-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
}

.rbase-feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.rbase-feature-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* rBase Diagram */
.rbase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rbase-diagram {
    position: relative;
    width: 400px;
    height: 400px;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 60px rgba(255, 106, 61, 0.5);
    z-index: 10;
}

.center-icon svg {
    width: 40px;
    height: 40px;
    stroke: #14151A;
}

.diagram-center span {
    font-size: 1rem;
    font-weight: 700;
    color: #14151A;
}

.diagram-items {
    position: absolute;
    width: 100%;
    height: 100%;
}

.diagram-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    transform: rotate(var(--angle)) translateY(-140px) rotate(calc(-1 * var(--angle)));
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-medium);
    animation: diagramPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--angle) / 60 * 0.5s);
}

.diagram-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: rotate(var(--angle)) translateY(-150px) rotate(calc(-1 * var(--angle))) scale(1.1);
}

@keyframes diagramPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.item-icon {
    font-size: 1.5rem;
}

.item-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.diagram-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   Models Section
   ========================================== */
.models-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 106, 61, 0.05) 50%, transparent 100%);
}

.models-showcase {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.models-track {
    display: flex;
    gap: 30px;
    animation: scrollModels 20s linear infinite;
}

@keyframes scrollModels {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.model-card {
    flex-shrink: 0;
    width: 180px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-medium);
}

.model-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.model-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 16px;
    border-radius: var(--radius-md);
}

.model-logo.openai { background: linear-gradient(135deg, #F3F1F4 0%, #4a9f8e 100%); color: white; }
.model-logo.claude { background: linear-gradient(135deg, #d97706 0%, #ea580c 100%); color: white; }
.model-logo.gemini { background: linear-gradient(135deg, #4285f4 0%, #34a853 100%); color: white; }
.model-logo.deepseek { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; }
.model-logo.grok { background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 100%); color: white; }
.model-logo.perplexity { background: linear-gradient(135deg, #20b2aa 0%, #3cb371 100%); color: white; }

.model-provider {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   Pricing Section
   ========================================== */

/* Access Comparison Table */
.access-compare-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.access-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.access-compare-table thead th {
    padding: 24px 20px 16px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    vertical-align: bottom;
    background: var(--bg-card);
}
.access-compare-table thead th:first-child {
    text-align: left;
    width: 180px;
}

.access-compare-col-club { background: rgba(255, 106, 61, 0.05) !important; }

.access-compare-table tbody td {
    padding: 11px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.5;
    vertical-align: middle;
}

.access-compare-table tbody tr:last-child td { border-bottom: none; }

.access-compare-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.access-compare-feature {
    font-weight: 600;
    color: var(--text-color) !important;
    font-size: 0.85rem;
    white-space: nowrap;
    background: var(--bg-card);
}

.access-compare-yes { color: var(--text-secondary); }
.access-compare-no { color: rgba(20, 21, 26, 0.35) !important; }

.access-check {
    display: inline-block;
    color: #5db87a;
    font-weight: 700;
    margin-right: 4px;
}
.access-x {
    display: inline-block;
    color: #d4706a;
    font-weight: 700;
    margin-right: 4px;
    opacity: 0.7;
}

.access-compare-table tbody td:nth-child(3) {
    background: rgba(255, 106, 61, 0.03);
}

.access-compare-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.pricing-section {
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-grid-two-col {
    grid-template-columns: repeat(2, 1fr);
}

.pricing-keys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.15) 0%, rgba(242, 85, 122, 0.15) 100%);
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.07);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 24px;
    background: var(--primary-gradient);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.pricing-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card .btn-block {
    margin-top: auto;
}

/* ==========================================
   Demo Section
   ========================================== */
.demo-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 106, 61, 0.05) 50%, transparent 100%);
}

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

.demo-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.demo-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition-medium);
}

.demo-video-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.demo-video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.demo-video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: #FFFFFF;
    cursor: pointer;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-video-player {
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    box-shadow: 0 0 40px rgba(255, 106, 61, 0.5);
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 60px rgba(255, 106, 61, 0.7);
}

.play-button svg {
    width: 28px;
    height: 28px;
    stroke: #14151A;
    margin-left: 4px;
}

.play-button.visible {
    opacity: 1;
    pointer-events: all;
}

.demo-video-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .demo-videos {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .demo-video-card {
        padding: 16px;
    }
    
    .demo-video-title {
        font-size: 1.1rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: var(--section-padding) 0;
}

.cta-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 16px;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(40, 30, 60, 0.072);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
}

.cta-section .btn-glass {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(20, 21, 26, 0.1);
}

.cta-section .btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cta-visual {
    position: relative;
    z-index: 1;
}

.cta-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-card {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    font-weight: 600;
    animation: ctaFloat 4s ease-in-out infinite;
}

.cta-card.card-1 { animation-delay: 0s; }
.cta-card.card-2 { animation-delay: 0.5s; margin-left: 30px; }
.cta-card.card-3 { animation-delay: 1s; }

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* ==========================================
   Animations (AOS replacement)
   ========================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1200px) {
    .hero-container {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-title.hero-title-sm {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid,
    .pricing-grid-two-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-keys-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 20px rgba(40, 30, 60, 0.108);
        border-left: 1px solid var(--border-color);
        z-index: 999;
        display: flex;
    }
    
    .nav-links.mobile-open {
        transform: translateX(0);
    }
    
    /* Mobile overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(20, 21, 26, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: -1;
        transform: translateX(-100%);
    }
    
    .nav-links.mobile-open::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 8px 0;
    }

    /* В мобильной панели дропдауны всегда раскрыты вложенным списком */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
    }

    .nav-caret {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        min-width: 0;
        padding: 2px 0 0 18px;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-item {
        font-size: 1rem;
        padding: 7px 0;
        white-space: normal;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .step {
        grid-template-columns: auto 1fr;
    }
    
    .step-visual {
        display: none;
    }
    
    .rbase-grid {
        grid-template-columns: 1fr;
    }
    
    .rbase-content {
        text-align: center;
    }
    
    .rbase-content .section-badge,
    .rbase-content .section-title,
    .rbase-content .section-description {
        text-align: center;
    }
    
    .rbase-feature {
        justify-content: center;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 40px;
    }
    
    .cta-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-visual {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Mobile nav action buttons */
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
        margin-top: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-nav-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-title.hero-title-sm {
        font-size: 1.875rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .pricing-grid,
    .pricing-grid-two-col {
        grid-template-columns: 1fr;
    }
    
    .pricing-keys-grid {
        grid-template-columns: 1fr;
    }
    
    .access-compare-wrap { margin: 0 -12px; padding: 0 12px; }
    .access-compare-table thead th { font-size: 0.88rem; padding: 16px 12px; }
    .access-compare-table tbody td { padding: 9px 12px; font-size: 0.84rem; }
    .access-compare-feature { white-space: normal; }
    .access-compare-cta { flex-direction: column; align-items: stretch; }
    .access-compare-cta .btn { width: 100%; }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        font-size: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    .section-container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero-container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title.hero-title-sm {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .pricing-card,
    .step {
        padding: 30px;
    }
    
    .rbase-diagram {
        width: 300px;
        height: 300px;
    }
    
    .diagram-item {
        width: 60px;
        height: 60px;
        margin: -30px 0 0 -30px;
        transform: rotate(var(--angle)) translateY(-100px) rotate(calc(-1 * var(--angle)));
    }
    
    .diagram-center {
        width: 90px;
        height: 90px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, rgba(20, 21, 26, 0) 0%, rgba(20, 21, 26, 0.5) 100%);
    position: relative;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
}

.faq-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 138, 61, 0.3);
}

.faq-item.active {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

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

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

.faq-question span {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-medium);
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium), padding var(--transition-medium);
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 28px 28px 28px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 16px 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.faq-answer code {
    background: rgba(255, 138, 61, 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
    
    .faq-answer p,
    .faq-answer li {
        font-size: 0.95rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================
   Video Modal
   ========================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(20, 21, 26, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14151A;
    transition: all 0.3s ease;
    z-index: 10002;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-modal-close svg {
    width: 20px;
    height: 20px;
}

.video-modal video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(40, 30, 60, 0.126);
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: -40px;
        width: 35px;
        height: 35px;
    }
    
    .video-modal-close svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   Blog Section
   ========================================== */
.blog-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 138, 61, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-read-time {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-read-time::before {
    content: '⏱️';
}

.blog-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

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

.blog-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.blog-read-more:hover {
    gap: 12px;
}

.blog-read-more svg {
    transition: transform var(--transition-fast);
}

.blog-read-more:hover svg {
    transform: translateX(4px);
}

/* Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-modal.active {
    opacity: 1;
}

.article-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.article-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 60px;
    z-index: 10001;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.article-modal.active .article-modal-content {
    transform: scale(1);
}

.article-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(20, 21, 26, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14151A;
    transition: all 0.3s ease;
    z-index: 10002;
}

.article-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.article-modal-close svg {
    width: 20px;
    height: 20px;
}

.article-full {
    color: var(--text-primary);
}

.article-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-category {
    padding: 8px 18px;
    background: rgba(255, 138, 61, 0.2);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.article-read-time {
    color: var(--text-muted);
    font-size: 14px;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 40px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.article-content a {
    color: var(--primary-light, #FF8A3D);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 138, 61, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article-content a:hover {
    color: #14151A;
    border-bottom-color: rgba(20, 21, 26, 0.1);
}

.article-content a:visited {
    color: var(--primary, #FF8A3D);
}

.article-content blockquote {
    border-left: 3px solid var(--primary, #FF8A3D);
    margin: 25px 0;
    padding: 15px 20px;
    background: rgba(255, 138, 61, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-light);
}

.article-content pre {
    background: rgba(20, 21, 26, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.article-content hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

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

.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-content th {
    background: rgba(255, 138, 61, 0.15);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.article-content tr:last-child td {
    border-bottom: none;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        padding: 25px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .article-modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
}


/* the1.day (11.10.2026): светлая тема — заголовки Unbounded, фон-небо лендинга */
body { background: linear-gradient(180deg, #FFE7D6 0%, #FBEFF4 52%, #F4F1FF 100%) fixed; color: #14151A; }
h1, h2, h3.section-title, .section-title, .hero-title { font-family: "Unbounded", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.03em; }
::selection { background: #FFD3B8; }
