/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 16px; }
p { color: #444; }
a { color: #2563eb; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn-primary { background: #2563eb; color: #fff; }
.btn-secondary { background: #f0f0f0; color: #333; }
.btn-large { padding: 18px 48px; font-size: 1.15rem; }

/* === Hero === */
.hero {
    text-align: center;
    padding: 100px 24px 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37,99,235,0.2);
    color: #60a5fa;
    border: 1px solid rgba(96,165,250,0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 16px; color: #fff; }
.hero-subtitle { font-size: 1.35rem; color: #cbd5e1; margin-bottom: 12px; font-weight: 500; }
.hero-desc { font-size: 1.05rem; color: #94a3b8; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* === Features === */
.features { padding: 80px 24px; background: #fff; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.feature-card {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { font-size: 0.95rem; color: #666; }

/* === How it works === */
.how-it-works { padding: 80px 24px; background: #f8f9fc; }
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.step {
    text-align: center;
    flex: 1;
    max-width: 240px;
}
.step-number {
    width: 56px; height: 56px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
    margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: #666; }
.step-arrow { font-size: 2rem; color: #2563eb; font-weight: 700; }

/* === Use cases === */
.usecases { padding: 80px 24px; background: #fff; }
.usecases-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.usecase-tag {
    padding: 10px 20px;
    background: #e8f0fe;
    color: #2563eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* === Formats === */
.formats { padding: 60px 24px; background: #f8f9fc; }
.formats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.format-badge {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* === CTA === */
.cta {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.1rem; }
.cta .btn-primary { background: #fff; color: #2563eb; }

/* === Pay === */
.pay-section { padding: 80px 24px; background: #fff; }
.pay-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.pay-card {
    background: #f8f9fc;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.pay-card:hover { border-color: #2563eb; transform: translateY(-4px); }
.pay-card.popular { border-color: #2563eb; position: relative; }
.pay-card.popular::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.pay-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pay-price { font-size: 2.2rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.pay-period { font-size: 0.9rem; color: #888; margin-bottom: 20px; }
.pay-card .btn { width: 100%; text-align: center; }

/* === Legal === */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.legal h1 { font-size: 1.8rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin-top: 24px; margin-bottom: 8px; text-align: left; }
.legal p, .legal li { font-size: 0.95rem; line-height: 1.7; color: #333; margin-bottom: 8px; }
.legal ul { padding-left: 24px; }
.legal a { color: #2563eb; }

/* === Footer === */
footer {
    text-align: center;
    padding: 32px 24px;
    background: #0f172a;
    color: #64748b;
    font-size: 0.9rem;
}
footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: #cbd5e1; }
footer p { color: #64748b; margin-bottom: 4px; }

/* === Mobile === */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .pay-cards { grid-template-columns: 1fr; }
}
