:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { position: sticky; top: 0; background: var(--white); border-bottom: 1px solid var(--border); z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--gray); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--primary); }
.btn { display: inline-block; padding: 12px 28px; background: var(--primary); color: var(--white); border-radius: 8px; font-weight: 600; font-size: 15px; transition: background .2s; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Hero */
.hero { padding: 100px 0 80px; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); }
.hero .container { text-align: center; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 20px; color: var(--gray); max-width: 600px; margin: 0 auto 36px; }
.hero .btn { font-size: 17px; padding: 16px 36px; }

/* Trust bar */
.trust { padding: 40px 0; border-bottom: 1px solid var(--border); }
.trust .container { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item .num { font-size: 36px; font-weight: 800; color: var(--primary); }
.trust-item .label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* Services */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-title p { color: var(--gray); font-size: 18px; max-width: 550px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px; transition: box-shadow .2s, transform .2s; }
.service-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-4px); }
.service-icon { width: 52px; height: 52px; background: #eff6ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 15px; line-height: 1.6; }

/* Why us */
.why { background: var(--light); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-num { width: 40px; height: 40px; min-width: 40px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.why-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.why-item p { color: var(--gray); font-size: 15px; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { text-align: center; }
.process-num { width: 56px; height: 56px; margin: 0 auto 16px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--gray); font-size: 14px; }

/* Pricing */
.pricing { background: var(--light); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 36px; text-align: center; }
.price-card.featured { border: 2px solid var(--primary); position: relative; }
.price-card.featured::before { content: 'Популярный'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.price-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.price-card .price { font-size: 36px; font-weight: 800; color: var(--primary); margin: 16px 0; }
.price-card .price span { font-size: 14px; color: var(--gray); font-weight: 400; }
.price-card ul { list-style: none; margin: 20px 0 28px; text-align: left; }
.price-card ul li { padding: 8px 0; color: var(--gray); font-size: 14px; border-bottom: 1px solid var(--border); }
.price-card ul li::before { content: '✓ '; color: var(--primary); font-weight: 700; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.blog-card-body { padding: 24px; }
.blog-card .cat { display: inline-block; background: #eff6ff; color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.blog-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.blog-card .date { color: var(--gray); font-size: 13px; margin-top: 12px; }

/* CTA */
.cta { background: var(--primary); padding: 70px 0; text-align: center; }
.cta h2 { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 28px; }
.cta .btn { background: var(--white); color: var(--primary); }
.cta .btn:hover { background: #f1f5f9; }

/* Contact */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 50px 0 30px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.4); }

/* Article page */
.article-page { padding: 50px 0 80px; }
.article-page .breadcrumb { font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.article-page .breadcrumb a { color: var(--primary); }
.article-page h1 { font-size: 34px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.article-page .meta { color: var(--gray); font-size: 14px; margin-bottom: 32px; }
.article-content { max-width: 720px; }
.article-content p { margin-bottom: 18px; font-size: 16px; line-height: 1.75; }
.article-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 14px; }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
.article-content pre { background: var(--light); padding: 16px; border-radius: 8px; overflow-x: auto; margin-bottom: 18px; font-size: 14px; }
.article-content code { font-family: 'Consolas', monospace; }

/* Category page */
.cat-header { padding: 50px 0 30px; }
.cat-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.cat-header p { color: var(--gray); font-size: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .services-grid, .pricing-grid, .blog-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; }
    .trust .container { gap: 30px; }
}
