/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --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;
    --white: #ffffff;
    --black: #000000;

    /* Semantic colors for theming */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --border-color: var(--gray-200);
    --card-bg: var(--white);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --code-bg: var(--gray-900);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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;

    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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);

    color-scheme: light;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --border-color: #27272a;
    --card-bg: #18181b;
    --navbar-bg: rgba(15, 15, 15, 0.95);
    --code-bg: #0a0a0a;

    --gray-50: #18181b;
    --gray-100: #27272a;
    --gray-200: #3f3f46;
    --gray-300: #52525b;
    --gray-400: #71717a;
    --gray-500: #a1a1aa;
    --gray-600: #d4d4d8;
    --gray-700: #e4e4e7;
    --gray-800: #f4f4f5;
    --gray-900: #fafafa;
    --white: #0f0f0f;
    --black: #fafafa;

    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0f0f0f;
        --bg-secondary: #1a1a1a;
        --bg-tertiary: #262626;
        --text-primary: #fafafa;
        --text-secondary: #a1a1aa;
        --text-tertiary: #71717a;
        --border-color: #27272a;
        --card-bg: #18181b;
        --navbar-bg: rgba(15, 15, 15, 0.95);
        --code-bg: #0a0a0a;

        --gray-50: #18181b;
        --gray-100: #27272a;
        --gray-200: #3f3f46;
        --gray-300: #52525b;
        --gray-400: #71717a;
        --gray-500: #a1a1aa;
        --gray-600: #d4d4d8;
        --gray-700: #e4e4e7;
        --gray-800: #f4f4f5;
        --gray-900: #fafafa;
        --white: #0f0f0f;
        --black: #fafafa;

        color-scheme: dark;
    }
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s, border-color 0.3s;
}

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

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

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

.nav-brand h2 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: none;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: block;
    }
}

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

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
    transition: background 0.3s;
}

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

.hero-content h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-visual {
    position: relative;
}

.code-preview {
    background: var(--code-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.code-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.code-header {
    background: var(--gray-800);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-700);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-600);
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca3f; }

.code-header span {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

.code-preview pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s;
}

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

.feature-card {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all 0.3s;
}

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

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Inline icons in headings */
.inline-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Paywall Section */
.paywall {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, #1e1b4b 100%);
    color: var(--white);
}

.paywall .section-header h2 {
    color: var(--white);
}

.paywall .section-header p {
    color: var(--gray-300);
}

.paywall-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .paywall-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .paywall-grid {
        grid-template-columns: 1fr;
    }
}

.paywall-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s;
}

.paywall-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.paywall-icon {
    margin-bottom: 1rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
}

.paywall-icon svg {
    width: 40px;
    height: 40px;
}

.paywall-card h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-lg);
}

.paywall-card > p {
    color: var(--gray-300);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.paywall-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paywall-features li {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.paywall-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 0.75rem;
}

.paywall-cta {
    text-align: center;
    padding-top: 1rem;
}

.paywall-cta p {
    color: var(--gray-400);
    margin: 0;
}

.paywall-cta strong {
    color: var(--primary-light);
}

/* Providers Section */
.providers {
    padding: 4rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.providers-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .providers-grid-2 {
        grid-template-columns: 1fr;
    }
}

.provider-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.provider-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.provider-card.featured::before {
    content: "Рекомендуем";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

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

.provider-logo {
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.provider-logo img {
    max-height: 100%;
    max-width: 150px;
}

.provider-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.provider-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    font-weight: 600;
}

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

.provider-comparison {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.provider-comparison h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}

/* SDK Section */
.sdk {
    padding: 4rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s;
}

.sdk-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.code-example {
    background: var(--code-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.code-example .code-header {
    background: var(--gray-800);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-700);
}

.code-example .code-header span {
    color: var(--gray-300);
    font-weight: 500;
}

.copy-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    background: transparent;
}

.code-example code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Examples Section */
.examples {
    padding: 4rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.example-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.example-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.example-code {
    background: var(--code-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.example-code pre {
    margin: 0;
    padding: 1rem;
    font-size: var(--font-size-xs);
    overflow-x: auto;
}

.example-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.example-link:hover {
    color: var(--primary-dark);
}

/* Getting Started Section */
.getting-started {
    padding: 4rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.code-snippet {
    background: var(--code-bg);
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: var(--font-size-base);
}

.footer-section p {
    color: var(--gray-400);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a,
.footer-contacts a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: var(--primary-light);
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

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

.pricing-header h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.pricing-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    text-align: center;
}

.pricing-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.pricing-info h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-info li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-info li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }
}

.footer-legal {
    background: var(--gray-800);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.footer-legal h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-sm);
}

.footer-legal p {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    margin: 0.25rem 0;
}

.footer-contacts {
    display: flex;
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .code-preview {
        transform: none;
    }

    h1 {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .providers-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comparison-table {
        font-size: var(--font-size-sm);
    }

    .provider-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .feature-card,
    .provider-card,
    .example-card {
        padding: 1.5rem;
    }

    .code-example pre,
    .example-code pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.provider-card,
.example-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn-primary:focus,
.btn-secondary:focus,
.tab-button:focus,
.copy-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.copy-btn.copied {
    background: var(--success-color);
}

.copy-btn.copied::after {
    content: "Скопировано!";
}

/* Payment Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--gray-500);
    margin: 0;
}

/* Payment Form */
.payment-form .form-group {
    margin-bottom: 1.5rem;
}

.payment-form label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.payment-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.payment-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.payment-form input[type="email"]::placeholder {
    color: var(--text-tertiary);
}

.form-hint {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Plan Selector */
.plan-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: var(--bg-secondary);
}

.plan-option input:checked + .plan-card {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.plan-card:hover {
    border-color: var(--gray-300);
}

.plan-option input:checked + .plan-card:hover {
    border-color: var(--primary-color);
}

.plan-name {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.plan-limit {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    grid-column: 1 / -1;
}

.plan-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: var(--font-size-xs);
    padding: 0.125rem 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Period Selector */
.period-selector {
    display: flex;
    gap: 0.75rem;
}

.period-option {
    flex: 1;
    position: relative;
}

.period-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.period-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.period-option input:checked + span {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
}

.period-option span:hover {
    border-color: var(--gray-300);
}

.period-option input:checked + span:hover {
    border-color: var(--primary-color);
}

.discount-badge {
    background: var(--success-color);
    color: var(--white);
    font-size: var(--font-size-xs);
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Payment Summary */
.payment-summary {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.summary-row.total span:last-child {
    color: var(--primary-color);
}

/* Pay Button */
.btn-pay {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-pay:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-pay:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-pay .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Payment Note */
.payment-note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin-top: 1rem;
    margin-bottom: 0;
}

.payment-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.payment-note a:hover {
    text-decoration: underline;
}

/* Mobile Modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: var(--border-radius-lg);
    }

    .period-selector {
        flex-direction: column;
    }

    .plan-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .plan-price {
        text-align: center;
    }
}

/* Pricing grid update for 4 cards */
@media (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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