:root {
    --bg-main: #F4F7FA;
    --bg-card: #FFFFFF;
    --primary-blue: #0052FF;
    --primary-hover: #003ECC;
    --text-dark: #0A1128;
    --text-gray: #475569;
    --border-color: #E2E8F0;
    --error-red: #EF4444;
    --warning-yellow: #F59E0B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--bg-main); 
    color: var(--text-dark); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    position: relative;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#network-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.app-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.header { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; }
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px;}
.text-blue { color: var(--primary-blue); }
.header-btn { text-decoration: none; color: var(--text-dark); font-weight: 600; padding: 12px 24px; border-radius: 10px; border: 1px solid var(--border-color); transition: 0.2s; background: var(--bg-card); }
.header-btn:hover { border-color: var(--text-dark); background: #F8FAFC; }

.hero { text-align: center; padding: 60px 0 40px; animation: fadeIn 0.8s ease-out; }
.status-badge { display: inline-block; background: #E0E7FF; color: var(--primary-blue); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 25px; }
.title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.subtitle { font-size: 1.15rem; color: var(--text-gray); max-width: 700px; margin: 0 auto 40px; }

.search-box { 
    display: flex; max-width: 700px; margin: 0 auto; 
    background: var(--bg-card); padding: 10px; border-radius: 16px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(255,255,255,0.5); position: relative; z-index: 10;
}
.search-box input { flex: 1; border: none; padding: 18px 25px; font-size: 1.1rem; outline: none; background: transparent; }
.search-box button { background: var(--primary-blue); color: white; border: none; padding: 0 35px; font-size: 1.05rem; font-weight: 600; border-radius: 10px; cursor: pointer; transition: 0.2s; }
.search-box button:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 82, 255, 0.3); }

.scanning-zone { max-width: 700px; margin: 30px auto; background: var(--bg-card); padding: 25px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.progress-header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 12px; color: var(--text-dark); }
.progress-bar-container { width: 100%; height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: var(--primary-blue); transition: width 0.2s ease; }

.report-card { background: var(--bg-card); border-radius: 24px; padding: 50px; box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08); border: 1px solid var(--border-color); animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); margin-top: 20px; }
.report-title { font-size: 1.8rem; margin-bottom: 30px; border-bottom: 2px solid #F1F5F9; padding-bottom: 20px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.metric-item { 
    padding: 25px 25px 25px 30px; 
    border-radius: 16px; border: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: 0.3s; position: relative; overflow: hidden;
}
.metric-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }

.metric-item.error { background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%); border-left: 12px solid var(--error-red); }
.metric-item.error::before {
    content: ''; position: absolute; left: -12px; top: 0; width: 12px; height: 100%;
    background: var(--error-red); box-shadow: 0 0 20px var(--error-red); opacity: 0.4;
    animation: pulse-glow 1.5s infinite alternate;
}
@keyframes pulse-glow { from { opacity: 0.1; } to { opacity: 0.6; } }

.metric-item.warning { background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%); border-left: 12px solid var(--warning-yellow); }
.metric-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; color: var(--text-dark); position: relative; z-index: 2; }
.metric-desc { color: var(--text-gray); font-size: 0.95rem; position: relative; z-index: 2; }

.expertise-section { padding: 100px 0 60px; text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; }
.section-subtitle { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; perspective: 1000px; }

/* Карточки услуг с новыми SVG */
.feature-card { background: var(--bg-card); padding: 40px 30px; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.1s ease, box-shadow 0.1s ease; transform-style: preserve-3d; }
.icon-wrapper { 
    width: 60px; height: 60px; background: #E0E7FF; 
    border-radius: 14px; display: flex; align-items: center; 
    justify-content: center; margin-bottom: 20px; transition: 0.3s;
    transform: translateZ(30px);
}
.blue-icon { width: 30px; height: 30px; color: var(--primary-blue); }
.feature-card:hover .icon-wrapper { background: var(--primary-blue); }
.feature-card:hover .blue-icon { color: white; }

.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; transform: translateZ(20px); }
.feature-card p { color: var(--text-gray); transform: translateZ(10px); }

.bottom-cta { background: var(--text-dark); color: white; padding: 60px 40px; border-radius: 24px; text-align: center; margin: 40px 0 80px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.bottom-cta h2 { font-size: 2.2rem; margin-bottom: 15px; }
.bottom-cta p { color: #94A3B8; font-size: 1.1rem; margin-bottom: 35px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.tg-btn { 
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: #2AABEE; color: white; text-decoration: none; padding: 16px 30px; font-size: 1.15rem; font-weight: 700; border-radius: 12px; width: 100%; max-width: 400px; transition: 0.3s; box-shadow: 0 10px 20px rgba(42, 171, 238, 0.2);
}
.tg-btn:hover { background: #2298D6; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(42, 171, 238, 0.4); }

.divider { display: flex; align-items: center; text-align: center; color: #64748B; width: 100%; max-width: 400px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #334155; }
.divider:not(:empty)::before { margin-right: 15px; }
.divider:not(:empty)::after { margin-left: 15px; }

.lead-form { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 400px; margin: 0 auto; }
.lead-form input { padding: 16px 20px; border-radius: 12px; border: 1px solid #334155; background: #1E293B; color: white; font-size: 1rem; font-family: 'Inter', sans-serif; outline: none; transition: 0.2s; }
.lead-form input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.3); }
.lead-form input::placeholder { color: #64748B; }

/* Стиль ошибки для валидации телефона */
.lead-form input.input-error { border-color: var(--error-red) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important; }

.cta-btn-large { background: var(--primary-blue); color: white; border: none; padding: 18px; font-size: 1.1rem; font-weight: 700; border-radius: 12px; cursor: pointer; transition: 0.3s; margin-top: 5px; }
.cta-btn-large:hover { background: white; color: var(--text-dark); transform: scale(1.03); }

.success-message { background: rgba(16, 185, 129, 0.1); border: 1px solid #10B981; padding: 25px; border-radius: 16px; color: #10B981; width: 100%; max-width: 400px; margin: 0 auto; animation: fadeIn 0.5s ease-out; }
.success-message h3 { font-size: 1.5rem; margin-bottom: 10px; color: #34D399; }
.success-message p { color: #A7F3D0; margin: 0; }

footer { text-align: center; padding: 40px; color: var(--text-gray); border-top: 1px solid var(--border-color); }
footer a { color: var(--text-dark); font-weight: 600; text-decoration: none; }
.hidden { display: none !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .title { font-size: 2.2rem; }
    .search-box { flex-direction: column; background: transparent; box-shadow: none; border: none; }
    .search-box input { background: var(--bg-card); border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--border-color); }
    .search-box button { padding: 18px; border-radius: 12px; width: 100%; }
    .report-card { padding: 25px; }
    .bottom-cta { padding: 40px 20px; }
}