/* ========== СТРАНИЦЫ ИНСТРУМЕНТОВ ========== */
.tool-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 2rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.tool-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.tool-hero .badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-size: 0.9rem;
}

.canvas-container {
    background: #0a0a0f;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #0a0a0f;
}

.info-panel {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.info-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.metric-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    background: #f1f5f9;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2563eb;
}

.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: #2563eb;
}

@media (max-width: 768px) {
    .tool-hero h1 { font-size: 2rem; }
    .tool-hero { padding: 2rem 1rem; }
}