/* Основные стили без Tailwind */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    --color-bg: #fdfaf5;
    --color-bg-secondary: #fef6ee;
    --color-card: #ffffff;
    --color-border: rgba(15, 23, 42, 0.08);
    --color-accent: #3b82f6;
    --color-accent-secondary: #f97316;
    --color-accent-soft: #e0ecff;
    --color-muted: #5f6c7b;
    --color-shadow: rgba(15, 23, 42, 0.08);
}

body {
    background: linear-gradient(180deg, #fffdf8 0%, #f7f0ff 40%, #fef9f3 100%);
    color: #0f172a;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

.light-theme {
    min-height: 100vh;
}

.site-header {
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #3b82f6;
    color: #ffffff;
    border: 1px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1e1b4b;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Утилиты */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.cursor-pointer { cursor: pointer; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.transition { transition-property: all; transition-duration: 150ms; }

/* Цвета */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-900 { background-color: #0f172a; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-white { color: #ffffff; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.bg-emerald-100 { background-color: #d1fae5; }
.text-emerald-700 { color: #047857; }

/* Hover эффекты */
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:border-slate-300:hover { border-color: #cbd5e1; }

/* Контейнеры */
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Flex wrap */
.flex-wrap { flex-wrap: wrap; }

/* Размеры */
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-64 { width: 16rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }

/* Позиционирование */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }

/* Overflow */
.overflow-y-auto { overflow-y: auto; }

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Специфичные классы проекта */
.surface {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.85rem;
    font-weight: 600;
}

.muted {
    color: var(--color-muted);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-section {
    padding: 2.5rem 0 3rem 0;
}

/* Новый главный CTA блок */
.hero-cta-block {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 1rem;
}

.hero-title-main {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle-main {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #64748b;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.main-upload-area {
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.main-upload-area.drag-over {
    transform: scale(1.02);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.upload-btn-primary {
    background: #2563eb;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.upload-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.upload-btn-primary:active {
    transform: translateY(0);
}

.upload-hint {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.75rem;
}

/* Прогресс-бар */
.main-upload-progress {
    animation: fadeIn 0.3s ease;
}

.progress-container {
    text-align: center;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-main {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 0%;
    animation: progressPulse 2s ease-in-out infinite;
}

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

.progress-text {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

/* Результат на странице */
.main-upload-result {
    animation: fadeInSlideDown 0.5s ease;
}

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

.result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #86efac;
}

.result-success-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #15803d;
    flex-shrink: 0;
}

.result-success-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #15803d;
    margin: 0;
    line-height: 1.4;
}

.demo-warning {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
}

.demo-warning__link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

.demo-warning__link:hover {
    text-decoration: none;
}

.result-content-inline {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: left;
}

.editor-image-wrapper {
    margin-top: 1rem;
    text-align: left;
}

.editor-image {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    display: block;
}

.result-content-inline pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.result-action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.locked-action {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.locked-action svg {
    opacity: 0.85;
}

.result-action-btn--primary {
    background: #2563eb;
    color: white;
}

.result-action-btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.result-action-btn--secondary {
    background: #f1f5f9;
    color: #475569;
}

.result-action-btn--secondary:hover {
    background: #e2e8f0;
}

/* Блок с информацией о сервисе */
.hero-info-block {
    padding: 2rem;
    margin-top: 2rem;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-card {
    padding: 2.5rem;
    background: linear-gradient(180deg, #fffefc 0%, #fef6ed 100%);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-top: 1rem;
}

.hero-subtitle--fullwidth {
    max-width: 100%;
    width: 100%;
}

.hero-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem 0;
}

.hero-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.hero-check span {
    color: var(--color-accent);
    font-weight: 700;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.hero-metrics--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 100%;
}

.hero-metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.hero-metrics--compact .hero-metric-card {
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.hero-metrics--compact .hero-metric-card:hover {
    transform: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.hero-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.12);
}

.hero-metric-card:hover::before {
    opacity: 1;
}

.hero-metric-card--files {
    --metric-color: #3b82f6;
}

.hero-metric-card--files::before {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.hero-metric-card--time {
    --metric-color: #10b981;
}

.hero-metric-card--time::before {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.hero-metric-card--accuracy {
    --metric-color: #8b5cf6;
}

.hero-metric-card--accuracy::before {
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.hero-metric-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0f172a 0%, var(--metric-color, #0f172a) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-metrics--compact .hero-metric-number {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.hero-metric-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

.hero-metrics--compact .hero-metric-label {
    font-size: 0.75rem;
    line-height: 1.3;
}

.hero-upload {
    padding: 2rem;
}

.hero-upload__header {
    margin-bottom: 1.25rem;
}

.hero-upload__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.hero-upload__subtitle {
    color: var(--color-muted);
}

.hero-upload__formats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.hero-upload__icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.hero-upload__icon svg {
    width: 38px;
    height: 38px;
    color: #ffffff;
}

.hero-upload__note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    justify-content: center;
    margin-top: 1rem;
}

.hero-upload__note svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.hero-upload__button {
    background: linear-gradient(120deg, #f97316, #fb923c);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35);
    font-size: 1.05rem;
    min-height: 56px;
}

.hero-pill--header {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 32rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.08);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.drop-zone {
    border: 2px dashed rgba(148, 163, 184, 0.6);
    border-radius: 18px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.drop-zone.drag-over {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.drop-zone:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

/* Улучшенные touch targets для мобильных */
@media (max-width: 768px) {
    button, .drop-zone {
        min-height: 48px;
    }
    
    #uploadBtn {
        min-height: 56px !important;
        font-size: 1rem !important;
    }
    
    .format-chip {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

.format-chip {
    border-radius: 12px;
    padding: 0.25rem 0.9rem;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
}

.upload-state {
    display: block;
}

.upload-state.hidden {
    display: none;
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 50px;
}

.waveform-bar {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #6366f1, #a5b4fc);
    animation: pulse 1.2s ease-in-out infinite;
}

.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes pulse {
    0%, 100% { height: 25%; }
    50% { height: 90%; }
}

.progress-bar {
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    height: 10px;
    border-radius: 999px;
    transition: width 0.2s ease;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    justify-content: space-between;
}

.plan-card--featured {
    border-color: #6366f1;
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.15);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.plan-features {
    list-style: none;
}

.plan-features li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #475467;
    margin-bottom: 0.75rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    padding: 0.75rem;
    z-index: 20;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
    .hero-card,
    .hero-upload {
        padding: 1.75rem;
    }
    .hero-shell {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-cta-block {
        padding: 2rem 1.5rem;
    }
    
    .hero-title-main {
        font-size: 1.75rem;
    }
    
    .hero-subtitle-main {
        font-size: 1rem;
    }
    
    .upload-btn-primary {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-metrics--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .hero-metric-card {
        padding: 1.25rem 1rem;
    }
    
    .hero-metrics--compact .hero-metric-card {
        padding: 0.5rem 0.35rem;
    }
    
    .hero-metric-number {
        font-size: 1.875rem;
    }
    
    .hero-metrics--compact .hero-metric-number {
        font-size: 1.25rem;
    }
    
    .hero-metric-label {
        font-size: 0.8rem;
    }
    
    .hero-metrics--compact .hero-metric-label {
        font-size: 0.65rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .plan-card {
        padding: 1.25rem;
    }
    
    .plan-price {
        font-size: 1.75rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .simple-card {
        padding: 1rem;
    }
    
    .simple-card h3 {
        font-size: 1rem;
    }
    
    .simple-card p {
        font-size: 0.875rem;
    }
    .bottom-nav {
        display: flex;
    }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:p-8 { padding: 2rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
    .md\:flex-row { flex-direction: row; }
    .md\:w-1\/2 { width: 50%; }
    .md\:text-base { font-size: 1rem; }
    
    /* Улучшенная мобильная версия */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .surface {
        padding: 1.5rem !important;
    }
    
    .drop-zone {
        min-height: 240px !important;
        padding: 1.5rem !important;
    }
    
    /* Увеличенные touch targets */
    button, .drop-zone, input {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    #uploadBtn {
        min-height: 56px !important;
        font-size: 1rem !important;
        padding: 1rem !important;
    }
    
    .format-chip {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        min-height: 36px;
    }
    
    /* Улучшенная читаемость на мобильных */
    .muted {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
    font-size: 0.75rem;
    color: #475467;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.simple-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.toast {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
    max-width: 420px;
    width: max-content;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.min-w-280px { min-width: 280px; }

@media (max-width: 768px) {
    .toast {
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        max-width: calc(100vw - 2rem);
        width: auto;
        padding: 0.875rem 1rem !important;
    }

    #toastMessage {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    #toastIcon {
        font-size: 1rem;
        flex-shrink: 0;
    }
}

.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

#onboardingOverlay {
    display: none;
}

#onboardingOverlay.active {
    display: flex;
}

.celebration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color);
    animation: confetti-fall 2.5s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Оптимизация производительности */
* {
    will-change: auto;
}

.drop-zone, button, .progress-bar {
    will-change: transform, opacity;
}

.content-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    padding: 3rem 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.05);
}

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Оптимизация рендеринга */
.surface, .drop-zone, button {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Улучшенная обратная связь для кнопок */
#uploadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4) !important;
}

#uploadBtn:active {
    transform: translateY(0);
}

#uploadBtn:focus {
    outline: 3px solid rgba(99, 102, 241, 0.3);
    outline-offset: 2px;
}

/* Улучшенная доступность */
.drop-zone:focus {
    outline: 3px solid rgba(99, 102, 241, 0.3);
    outline-offset: 2px;
}

/* Плавные переходы для всех интерактивных элементов */
button, .drop-zone, input, a {
    transition: all 0.2s ease;
}

/* Улучшенная читаемость */
@media (prefers-contrast: high) {
    .surface {
        border: 2px solid #0f172a;
    }
    
    button {
        border: 2px solid currentColor;
    }
}

/* Trust indicators */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Улучшенная статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .stat {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Input и button стили */
input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #0f172a;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    text-decoration: underline;
}

.underline {
    text-decoration: underline;
}

/* Дополнительные утилиты для замены Tailwind */
.flex-1 { flex: 1 1 0%; }
.text-right { text-align: right; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.mt-20 { margin-top: 5rem; }
.min-h-screen { min-height: 100vh; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.prose { max-width: 65ch; }
.prose-lg { font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose-invert { color: #e5e7eb; }
.prose-invert h2 { color: #f3f4f6; }
.prose-invert p { color: #d1d5db; }
.max-w-none { max-width: none; }
.inline-block { display: inline-block; }

/* Text Editor Styles */
.text-editor-container {
    margin-bottom: 1.5rem;
}

.editable-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.editable-text:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.editable-text b,
.editable-text strong {
    font-weight: 700;
    color: #1e293b;
}

