/* WebStudio Theme — светлый современный дизайн */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #dbeafe;
    --border: #e2e8f0;
    --success: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 4px 12px rgba(15,23,42,0.06);
    --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
    --shadow-lg: 0 16px 48px rgba(15,23,42,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

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

/* ===== Header ===== */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    padding: 16px 0;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-size: 24px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.site-logo span { color: var(--accent); }
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
    color: var(--text); font-weight: 500; font-size: 15px;
    padding: 8px 16px; border-radius: var(--radius-sm); display: block;
    transition: all 0.2s;
}
.main-nav > li > a:hover, .main-nav > li.active > a { background: var(--accent-light); color: var(--accent-dark); }

/* Dropdown */
.main-nav .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; margin-top: 8px; }
.main-nav li:hover > .dropdown { display: block; animation: fadeIn 0.2s; }
.main-nav .dropdown li { list-style: none; }
.main-nav .dropdown a { padding: 10px 16px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; display: block; }
.main-nav .dropdown a:hover { background: var(--bg); color: var(--accent); }
.main-nav .has-children > a::after { content: ' ▾'; font-size: 10px; opacity: 0.5; }

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

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; color: var(--text); letter-spacing: -0.03em; position: relative; }
.hero h1 span { color: var(--accent); }
.hero .subtitle { font-size: 20px; color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; position: relative; }
.hero .cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: 40px; font-weight: 800; color: var(--text); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-title p { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== Cards / Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: all 0.3s; position: relative;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-light); }
.feature-card .icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ===== Service cards (для разделов) ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: all 0.3s; text-decoration: none; color: inherit; display: block;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); color: inherit; }
.service-card .num { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.04em; }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); margin-bottom: 16px; }
.service-card .more { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ===== Stats ===== */
.stats { background: var(--text); color: white; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-item .num { font-size: 48px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-item .label { font-size: 15px; color: var(--text-soft); }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.testimonial-card .stars { color: var(--warn); font-size: 18px; margin-bottom: 16px; }
.testimonial-card p { font-size: 16px; color: var(--text); margin-bottom: 20px; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial-card .author-info strong { display: block; font-size: 15px; }
.testimonial-card .author-info span { font-size: 13px; color: var(--text-muted); }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--accent); border-width: 2px; }
.pricing-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pricing-card h3 { font-size: 20px; margin-bottom: 16px; }
.pricing-card .price { font-size: 48px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 24px 0; text-align: left; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 15px; }
.pricing-card ul li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: white; padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p { font-size: 18px; margin-bottom: 32px; opacity: 0.9; }
.cta-section .btn { background: white; color: var(--accent); }
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== Content page (service/subservice) ===== */
.page-hero { background: linear-gradient(135deg, #eff6ff, #dbeafe); padding: 60px 0 40px; text-align: center; }
.page-hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.breadcrumb { padding: 16px 0; color: var(--text-muted); font-size: 14px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

.page-content { padding: 40px 0 80px; }
.page-content h2 { font-size: 32px; margin: 32px 0 16px; }
.page-content h3 { font-size: 24px; margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; font-size: 17px; color: var(--text); }
.page-content ul, .page-content ol { margin: 16px 0 16px 24px; }
.page-content li { margin-bottom: 8px; }

/* Sub-pages nav */
.subnav { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.subnav h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 16px; }
.subnav ul { list-style: none; margin: 0; }
.subnav li { margin-bottom: 4px; }
.subnav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; transition: all 0.2s; }
.subnav a:hover, .subnav a.active { background: var(--accent-light); color: var(--accent-dark); }

/* ===== Footer ===== */
.site-footer { background: var(--text); color: var(--text-soft); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; font-size: 16px; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-soft); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 36px; }
    .hero .subtitle { font-size: 16px; }
    .section-title h2 { font-size: 28px; }
    .main-nav { display: none; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .pricing-card { padding: 24px; }
}
