* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0a0f14;
    --foreground: #f0f6fc;
    --card: #161b22;
    --card-hover: #1c2128;
    --primary: #4ade80;
    --primary-dark: #22c55e;
    --primary-foreground: #052e16;
    --muted: #8b949e;
    --muted-darker: #6e7681;
    --border: #30363d;
    --accent: #a855f7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 20px;
    background: rgba(10, 15, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.header-logo-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-foreground);
}

.header-logo-text {
    font-size: 1.125rem;
    font-weight: 600;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
}

.header-nav a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--foreground);
}

.header-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: var(--primary);
    color: var(--primary-foreground);
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: var(--primary-dark);
}

.header-btn svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 640px) {
    .header-btn {
        display: inline-flex;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 120px 20px 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg .glow-1 {
    position: absolute;
    left: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.1);
    filter: blur(80px);
}

.hero-bg .glow-2 {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    filter: blur(100px);
}

.hero-bg .glow-3 {
    position: absolute;
    left: 50%;
    top: 33%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.05);
    filter: blur(60px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(to right, var(--foreground) 1px, transparent 1px),
        linear-gradient(to bottom, var(--foreground) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Новый бейдж */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-icon-container {
    position: relative;
}

.hero-icon-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(74, 222, 128, 0.2);
    filter: blur(20px);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.hero-icon {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 25px 50px -12px rgba(74, 222, 128, 0.3);
}

.hero-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-foreground);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--muted);
    margin-bottom: 16px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--muted-darker);
    max-width: 700px;
    margin: 0 auto 40px;
    text-wrap: pretty;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--card);
    border-color: var(--muted);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 64px 20px;
    background: rgba(22, 27, 34, 0.5);
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(74, 222, 128, 0.1);
    margin-bottom: 16px;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.stat-value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 20px 100px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-wrap: balance;
}

.section-header p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    text-wrap: pretty;
}

.features-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid rgba(48, 54, 61, 0.3);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--card);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(74, 222, 128, 0.1);
    margin-bottom: 16px;
    transition: background 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(74, 222, 128, 0.2);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
    font-size: 15px;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 80px 20px 100px;
    background: rgba(22, 27, 34, 0.3);
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
}

.steps {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-line {
    display: none;
}

@media (min-width: 768px) {
    .steps-line {
        display: block;
        position: absolute;
        left: 50%;
        top: 32px;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% - 80px);
        background: linear-gradient(to bottom, rgba(74, 222, 128, 0.5), rgba(74, 222, 128, 0.2), transparent);
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 48px;
    padding: 0 16px;
}

.step:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .step {
        display: grid;
        grid-template-columns: 1fr 64px 1fr;
        gap: 32px;
        align-items: center;
        padding: 0;
    }
}

.step-content {
    order: 2;
}

.step-icon-wrapper {
    order: 1;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-content {
        order: 1;
        text-align: right;
    }

    .step-icon-wrapper {
        order: 2;
        display: flex;
        justify-content: center;
    }

    .step-content-right {
        order: 3;
        text-align: left;
    }

    /* Нечетные шаги: контент слева, иконка по центру, пусто справа */
    .step:nth-child(odd) .step-content {
        order: 1;
        text-align: right;
    }

    .step:nth-child(odd) .step-icon-wrapper {
        order: 2;
    }

    .step:nth-child(odd) .step-placeholder {
        order: 3;
    }

    /* Четные шаги: пусто слева, иконка по центру, контент справа */
    .step:nth-child(even) .step-placeholder {
        order: 1;
    }

    .step:nth-child(even) .step-icon-wrapper {
        order: 2;
    }

    .step:nth-child(even) .step-content {
        order: 3;
        text-align: left;
    }
}

.step-placeholder {
    display: none;
}

@media (min-width: 768px) {
    .step-placeholder {
        display: block;
    }
}

.step-icon {
    position: relative;
    z-index: 10;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.3);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-foreground);
}

.step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--muted);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 80px 20px 100px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.1), rgba(168, 85, 247, 0.1));
    text-align: center;
}

@media (min-width: 768px) {
    .cta-card {
        padding: 80px 64px;
    }
}

.cta-card .glow-1 {
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.2);
    filter: blur(80px);
    pointer-events: none;
}

.cta-card .glow-2 {
    position: absolute;
    left: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    filter: blur(100px);
    pointer-events: none;
}

.cta-content {
    position: relative;
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(74, 222, 128, 0.2);
    margin-bottom: 32px;
}

.cta-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.cta h2 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-wrap: balance;
}

.cta-description {
    color: var(--muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 32px;
    text-wrap: pretty;
}

.cta .btn-primary {
    padding: 18px 40px;
    font-size: 18px;
}

.cta .btn-primary svg {
    transition: transform 0.2s ease;
}

.cta .btn-primary:hover svg {
    transform: translateX(4px);
}

.cta-subtext {
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted-darker);
}

/* ===== FOOTER ===== */
.footer {
    padding: 48px 20px;
    background: rgba(22, 27, 34, 0.3);
    border-top: 1px solid rgba(48, 54, 61, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(74, 222, 128, 0.2);
}

.footer-logo-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link svg {
    width: 16px;
    height: 16px;
}

.footer-divider {
    height: 1px;
    background: rgba(48, 54, 61, 0.3);
    margin: 32px 0;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: var(--muted-darker);
}

.footer-bottom p:last-child {
    margin-top: 8px;
}

/* Language Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--foreground);
    background: rgba(74, 222, 128, 0.1);
}

.lang-btn.active {
    color: var(--primary);
    background: rgba(74, 222, 128, 0.15);
}

.lang-divider {
    color: var(--border);
    font-size: 14px;
}

@media (max-width: 768px) {
    .header-actions {
        gap: 12px;
    }
    
    .lang-switcher {
        padding: 4px 8px;
    }
    
    .lang-btn {
        font-size: 12px;
        padding: 3px 6px;
    }
}