/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-900: #1e3a8a;
    
    --secondary-400: #a855f7;
    --secondary-500: #9333ea;
    --secondary-600: #7c3aed;
    
    --accent-400: #f59e0b;
    --accent-500: #d97706;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --error-500: #ef4444;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.logo-icon {
    font-size: var(--font-size-xl);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    text-decoration: none; /* убираем подчеркивание у ссылок-кнопок */
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
    text-decoration: none;
}

/* ===== FIX: remove underline for anchor-styled buttons (final hard override) ===== */
/* (временный override убран из середины, окончательная версия в конце файла) */

/* гарантируем отсутствие подчеркивания в остальных состояниях */
.btn-primary:visited, .btn-primary:active, .btn-primary:focus {
    text-decoration: none;
}

/* видимая обводка по табу, без подчеркивания */
.btn-primary:focus-visible {
    outline: 2px solid var(--primary-300);
    outline-offset: 2px;
    text-decoration: none;
}

/* Дополнительная защита от подчеркивания, если где-то переопределяется */

.btn-primary.large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-secondary.large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
}

.btn-outline:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
    transform: translateY(-1px);
}

.btn-outline.large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-20);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-400), var(--accent-400));
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-400), var(--primary-400));
    top: 60%;
    right: 30%;
    animation-delay: 4s;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content {
    max-width: 600px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    border: 1px solid var(--primary-200);
}

.badge-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-700);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* ===== TERMINAL MOCKUP ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-mockup {
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.terminal-header {
    background: var(--gray-800);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.terminal-controls {
    display: flex;
    gap: var(--space-2);
}

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

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.terminal-title {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.terminal-body {
    padding: var(--space-6);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: var(--gray-100);
}

.terminal-line {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.prompt {
    color: var(--success-500);
    font-weight: 600;
}

.command {
    color: var(--primary-400);
}

.output {
    color: var(--gray-300);
    margin-left: var(--space-6);
}

.output.success {
    color: var(--success-500);
}

.typing-text {
    animation: typing 2s steps(26) infinite;
}

@keyframes typing {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-24) 0;
    background: white;
}

.features .container {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--primary-600);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== MODELS SECTION ===== */
.models {
    padding: var(--space-24) 0;
    background: var(--gray-50);
}

.models .container {
    display: block;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.model-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.model-header {
    margin-bottom: var(--space-6);
    position: relative;
}

.model-badge {
    position: absolute;
    top: -var(--space-4);
    right: -var(--space-4);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.model-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.model-description {
    color: var(--gray-600);
    line-height: 1.5;
}

.model-specs {
    margin-bottom: var(--space-6);
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

.spec:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--gray-500);
    font-weight: 500;
}

.spec-value {
    color: var(--gray-900);
    font-weight: 600;
}

.btn-model {
    width: 100%;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* ===== PRICING SECTION ===== */
.pricing {
    padding: var(--space-24) 0;
    background: white;
}

.pricing .container {
    display: block;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-500);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

.pricing-badge {
    position: absolute;
    top: -var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.pricing-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

.price-currency {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
}

.price-amount {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--gray-900);
}

.price-period {
    font-size: var(--font-size-lg);
    color: var(--gray-500);
}

.price-text {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
}

.pricing-description {
    color: var(--gray-600);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.pricing-features li {
    padding: var(--space-3) 0;
    color: var(--gray-700);
    position: relative;
    padding-left: var(--space-6);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-500);
    font-weight: 700;
}

.btn-pricing {
    width: 100%;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pricing.primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border-color: var(--primary-600);
}

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

.btn-pricing.primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="600" cy="800" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

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

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    font-size: var(--font-size-xl);
    color: var(--gray-300);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
}

.footer-brand .logo {
    margin-bottom: var(--space-4);
}

.footer-brand .logo-text {
    color: white;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
}

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

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

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

.footer-list li {
    margin-bottom: var(--space-2);
}

.footer-list a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.copyright {
    color: var(--gray-500);
}

.version {
    color: var(--gray-400);
    font-size: var(--font-size-xs);
    opacity: 0.8;
    margin-left: var(--space-2);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .terminal-mockup {
        transform: none;
        max-width: 400px;
    }
}

/* Cleanup: финальные стили кнопок без дублей */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible {
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: var(--space-4);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid,
    .models-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .nav-container {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .cta-title {
        font-size: var(--font-size-3xl);
    }
    
    .nav-menu {
        display: none; /* Здесь можно добавить мобильное меню */
    }
}

/* ===== BATCH 1 ADDITIONS (lp- prefixed) ===== */
.lp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
    margin-top: var(--space-8);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.lp-trust-bullet {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--gray-100);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    line-height: 1.2;
    border: 1px solid var(--gray-200);
    white-space: nowrap;
}

.lp-cta-main {
    position: relative;
    isolation: isolate;
}

.lp-cta-main::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, var(--primary-400), var(--secondary-500));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
        mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
}

.lp-cta-main:hover::after {
    opacity: 1;
}

.lp-faq {
    padding: var(--space-24) 0 var(--space-16);
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.lp-faq-head {
    text-align: center;
    margin-bottom: var(--space-12);
}

.lp-faq-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.lp-faq-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
}

.lp-faq-grid {
    display: grid;
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto var(--space-8);
}

.lp-faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    position: relative;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.lp-faq-item[open] {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.lp-faq-question {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--gray-800);
    position: relative;
    padding-right: 1.5rem;
}

.lp-faq-question::-webkit-details-marker { display: none; }
.lp-faq-question::marker { content: ''; }

.lp-faq-question::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.25rem;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6"/></svg>') center/contain no-repeat;
    transform: translateY(-50%) rotate(-90deg);
    transition: transform .3s ease;
}

.lp-faq-item[open] .lp-faq-question::after {
    transform: translateY(-50%) rotate(0deg);
}

.lp-faq-answer {
    margin-top: var(--space-3);
    color: var(--gray-600);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.lp-faq-cta {
    text-align: center;
}

.lp-faq-cta-btn {
    display: inline-block;
    margin-top: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

@media (max-width: 768px) {
    .lp-hero-trust {
        justify-content: center;
    }
    .lp-faq-title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    .lp-faq-item { padding: var(--space-4) var(--space-4); }
    .lp-faq-title { font-size: var(--font-size-xl); }
}

/* ===== HERO OFFER STYLES ===== */
.hero-offer {
    margin: var(--space-6) 0 var(--space-4) 0;
    width: 100%;
    text-align: center;
}

.offer-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-600);
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: var(--space-4) var(--space-6);
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-xl);
    background-color: var(--primary-50);
    margin: 0 auto;
    display: block;
    text-align: center;
    width: fit-content;
    max-width: 95%;
}

/* ===== TRUST SECTION STYLES ===== */
.trust {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: var(--space-24) 0;
    background: var(--gray-50);
}


.hiw-diagram {
    margin: 0 auto;
    max-width: 1280px;
    padding: var(--space-6);
}

.hiw-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: var(--font-family);
}

.hiw-background {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 1.5px;
}

.hiw-ring-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    fill: var(--gray-600);
    text-anchor: middle;
    letter-spacing: 0.01em;
}

/* Убраны старые стили окружностей, используется прямая заливка в SVG */

/* Общий стиль подписей */
.hiw-ring-label { fill: #4b3b2a; }

.hiw-node-label { fill: #4b3b2a; }

.hiw-node circle,
.hiw-node ellipse {
    stroke-width: 3px;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

.hiw-node-label {
    font-size: var(--font-size-base);
    font-weight: 500;
    fill: var(--gray-800);
    text-anchor: middle;
    letter-spacing: 0.01em;
}

/* Сбрасываем специфичные старые стили фигур */
.hiw-node-core circle,
.hiw-node-user circle,
.hiw-node-session circle,
.hiw-node-rag circle,
.hiw-node-initiator circle { stroke-linejoin: round; }

.hiw-links path {
    fill: none;
    stroke: #4b3b2a;
    stroke-width: 3px;
    stroke-linecap: round;
    transition: stroke 0.2s ease, stroke-width 0.2s ease;
}

.hiw-links path:hover { stroke: #9c5d14; stroke-width: 3.2px; }

/* Монохромная вариация диаграммы */
.hiw-svg--mono .hiw-ring-label,
.hiw-svg--mono .hiw-node-label { fill: #222; font-weight: 500; }
.hiw-svg--mono .hiw-links path { stroke: #222; }
.hiw-svg--mono .hiw-links path:hover { stroke: #000; }

/* ENHANCED DIAGRAM */
.hiw-svg--enhanced { overflow: visible; }
.hiw-svg--enhanced .hiw-node-label, 
.hiw-svg--enhanced .hiw-ring-label { fill: #3a3028; letter-spacing: .2px; }
.hiw-svg--enhanced .hiw-links path { stroke: #5a4332; stroke-width: 2.4px; fill: none; }
.hiw-svg--enhanced .hiw-links path:hover { stroke: #8b5a32; stroke-width: 2.6px; }

.hiw-svg--enhanced .hiw-node circle,
.hiw-svg--enhanced .hiw-node ellipse { transition: transform .35s cubic-bezier(.4,.2,.2,1), filter .35s, stroke .3s; transform-origin: center center; }
.hiw-svg--enhanced .hiw-node:hover circle,
.hiw-svg--enhanced .hiw-node:hover ellipse { transform: scale(1.035); filter: drop-shadow(0 6px 14px rgba(0,0,0,.12)); stroke: #c99445; }
/* Убрали пунктир локальной — теперь единый стиль */

/* Анимации */
@keyframes hiw-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@keyframes hiw-fade-path { from { stroke-dashoffset: 140; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

.hiw-anim[data-pulse="true"] { animation: hiw-pulse 7s ease-in-out infinite; transform-origin: center center; }

.hiw-links path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: hiw-fade-path .9s ease forwards; }
.hiw-links path:nth-child(2){ animation-delay:.12s; }
.hiw-links path:nth-child(3){ animation-delay:.24s; }
.hiw-links path:nth-child(4){ animation-delay:.36s; }
.hiw-links path:nth-child(5){ animation-delay:.48s; }

/* Адаптив под новую диаграмму */
@media (max-width: 1100px) {
    .hiw-svg--enhanced { scale: .85; transform-origin: center top; }
}
@media (max-width: 880px) {
    .hiw-svg--enhanced { scale: .75; }
}
@media (max-width: 680px) {
    .hiw-svg--enhanced { scale: .65; }
    .hiw-svg--enhanced .hiw-node-label { font-size: 11px !important; }
    .hiw-svg--enhanced .hiw-ring-label { font-size: 14px !important; }
}

.hiw-caption {
    text-align: center;
    margin-top: var(--space-8);
    font-size: var(--font-size-base);
    color: var(--gray-600);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hiw-legend {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: var(--space-12);
    padding: 0;
}

.hiw-legend li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

/* ===== Мобильная упрощённая диаграмма ===== */
.hiw-diagram-mobile { display: none; }
.hiw-svg--mobile { display: none; width: 100%; height: auto; max-width: 340px; margin: 0 auto; aspect-ratio: 1 / 1; }
.hiw-mobile-steps { 
    list-style: decimal;
    padding-left: 1.25rem;
    margin: var(--space-6) auto 0;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-700);
}
.hiw-mobile-steps li strong { color: var(--gray-900); font-weight: 600; }
.hiw-mobile-note { 
    margin-top: var(--space-5);
    font-size: 13px;
    color: var(--gray-600);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .hiw-svg--enhanced { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }
    .hiw-svg--mobile { display: block !important; }
    .hiw-diagram-mobile { display: block !important; }
    .hiw-legend { margin-top: var(--space-8); }
}

.hiw-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* Легенда обновлена под единую теплую палитру */
.hiw-dot-core { background: #f2b455; }
.hiw-dot-cloud { background: #f9cf74; }
.hiw-dot-user { background: #f28a1a; }
.hiw-dot-memory { background: #e89a23; }
.hiw-dot-initiator { background: #f5a341; }

@media (max-width: 1024px) {
    .hiw-diagram {
        padding: var(--space-4);
    }

    .hiw-ring-label {
        font-size: var(--font-size-base);
    }

    .hiw-caption {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    .hiw-diagram {
        padding: var(--space-3);
    }

    .hiw-ring-label {
        font-size: var(--font-size-sm);
    }

    .hiw-node-label {
        font-size: var(--font-size-sm);
    }

    .hiw-svg {
        min-height: 360px;
    }

    .hiw-caption {
        margin-top: var(--space-6);
    }
}

/* Подпись и легенда */
.hiw-caption {
    max-width: 840px;
    margin: var(--space-6) auto 0;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.5;
    text-align: center;
}

.hiw-legend {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.hiw-dot { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    display: inline-block; 
    margin-right: 8px; 
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05); 
}

/* (дублирующийся старый блок точек легенды – синхронизирован) */
.hiw-dot-user { background: #f28a1a; }
.hiw-dot-memory { background: #e89a23; }
.hiw-dot-core { background: #f2b455; }
.hiw-dot-cloud { background: #f9cf74; }

/* Адаптивность */
@media (max-width: 960px) {
    .hiw-svg { max-height: 560px; }
    .hiw-ring-label { font-size: 12px; }
    .hiw-core-label { font-size: 14px; }
    .hiw-memory-label { font-size: 11px; }
}

@media (max-width: 720px) {
    .hiw-svg { max-height: 500px; }
    .hiw-caption { font-size: 12px; }
    .hiw-legend { grid-template-columns: 1fr; }
    .hiw-ring-label { font-size: 11px; }
    .hiw-core-label { font-size: 13px; }
    .hiw-memory-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .hiw-arrow path { animation: none; stroke-dashoffset: 0; }
    .hiw-concentric .hiw-local-ring,
    .hiw-concentric .hiw-cloud-ring,
    .hiw-core-node .hiw-core-circle { animation: none; }
}

.trust-content {
    text-align: center;
}

.trust-header {
    margin-bottom: var(--space-16);
}

.trust-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.trust-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.trust-item {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.trust-item-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.trust-item-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== USE CASES SECTION STYLES ===== */
.use-cases {
    padding: var(--space-20) 0;
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.use-case-card {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    text-align: center;
}

.use-case-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.use-case-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    font-style: italic;
}

.use-case-result {
    text-align: center;
}

.result-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-500), var(--primary-500));
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .trust-title {
        font-size: var(--font-size-2xl);
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .offer-text {
        font-size: var(--font-size-lg);
        padding: var(--space-3) var(--space-4);
    }
}

@media (max-width: 480px) {
    .trust {
        padding: var(--space-16) 0;
    }
    
    .use-cases {
        padding: var(--space-16) 0;
    }
    
    .trust-item {
        padding: var(--space-6);
    }
    
    .use-case-card {
        padding: var(--space-6);
    }
}
